You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's probably a dup of #16452. My PR might address it inadvertently but the real fix is not to check overrides in private attributes since they're by definition not overriding.
Bug Report
After updating mypy from 1.6.1 to 1.7.0 I faced the issue with
explicit-override
option for pydantic modelsTo Reproduce
example.py
Expected Behavior
No errors
Actual Behavior
mypy --enable-error-code explicit-override example.py
error: Method "__mypy-replace" is not using @override but is overriding a method in class "pydantic.main.BaseModel" [explicit-override]
Your Environment
The text was updated successfully, but these errors were encountered: