-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mutable-class-default (RUF012) misinterprete the code block #9647
Comments
It looks like |
What is |
It's part of Pydantic v1: https://docs.pydantic.dev/2.0/api/config/#pydantic.config.BaseConfig |
It's a class that is deprecated as of Pydantic 2.0. The result is the same without inheriting from that class. |
Thank you! Will add. |
Thank you for your quick response. |
Hello,
RUF012 working principle seems to be broken. I'm defining a Pydantic json_encoder config however Ruff detects it as typing annotation and raises an error when I check.
Code:
Command:
ruff check .
Result:
Current settings:
Current Ruff version:
ruff 0.1.14
The text was updated successfully, but these errors were encountered: