Subclass class variables not checked against superclass type hints #1726
Labels
enhancement
New feature or request
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected v. actual behaviour
When a subclass sets a class variable that doesn't match the superclass's type hint, pylance should warn about it.
Pylance also infers the wrong type for subclass instance references to the variable.
Code Snippet / Additional information
Output from
python
:Output from
mypy
:The text was updated successfully, but these errors were encountered: