Describe the bug
PyCharm is not seeing validator
function as a class method when using @pydantic.validator
instead of @validator
To Reproduce
Steps to reproduce the behavior:
@pydantic.validator(...)
as a decorator instead of using @validator(...)
Expected behavior
PyCharm should not warn about using self
instead cls
since validator()
returns class method
Environments (please complete the following information):
Additional context
None
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too