mypy doesn't understand @abc.abstractmethod
on __getattr__
#10409
Labels
bug
mypy got something wrong
@abc.abstractmethod
on __getattr__
#10409
Bug Report
mypy doesn't understand
and complains about missing attributes
To Reproduce
Run
mypy
on:Expected Behavior
mypy shouldn't complain about attribute "hello" because I've overridden
__getattr__
. mypy exhibits the correct behavior when the@abc.abstractmethod
decorator is removed.Actual Behavior
mypy complains that
main.py:11: error: "CC" has no attribute "hello"
. But if I comment out@abc.abstractmethod
mypy will not complain.Your Environment
mypy main.py
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: