Replies: 1 comment
-
|
The error that you're seeing is a syntax error and these cannot be ignored as they don't have a rule code. This was changed in Ruff 0.5, you can read more about it here: https://astral.sh/blog/ruff-v0.5.0#changes-to-e999-and-reporting-of-syntax-errors. With Ruff 0.12, a new class of syntax errors have been added, one of them being version related syntax errors which are specific to the Python version. What you're seeing here is that Ruff detected that the project is using Python 3.11 while the source code contains a syntax that was introduced in Python 3.12 (type parameter lists). If it's intentional that the file containing this syntax is intended to be run on Python 3.12 or greater (e.g., it's a script and not part of the module), then you can use Does that help? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Usually it shows a ruff code for the message, so I can write
But this message seems to have no code in it, so I don't know how to disable it
Beta Was this translation helpful? Give feedback.
All reactions