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
mypy can't tell a "private" private attribute defined in a sub-class as being different from a same-named "private" private attribute defined in the base class.
#6505
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.
Steps to reproduce
mypy thinks the attribute defined on line 10 refers to the attribute defined on line 5:
Current behavior
mypy reports the following error:
t1.py:10: error: Incompatible types in assignment (expression has type "str", variable has type "Optional[int]")
Expected behavior
mypy shouldn't report anything.
mypy --version output
mypy 0.670
The text was updated successfully, but these errors were encountered: