PLW3201
false positive for Pydantic dunders like __get_pydantic_core_schema__
#15624
Labels
rule
Implementing or modifying a lint rule
With the following dependencies and Python 3.12.7:
Running Ruff on the snippet from https://docs.pydantic.dev/latest/concepts/types/#as-a-method-on-a-custom-type
I get the following
PLW3201
error:I know I can allowlist this name via Ruff configuration:
However, I guess the question is similar to #9716, but instead of built-ins now for Pydantic. Should Pydantic dunders be ignored by default?
The text was updated successfully, but these errors were encountered: