(🐞) staticmethod
special-casing causes error to not be reported
#16161
Labels
bug
mypy got something wrong
If we copy the implementation of
staticmethod
from typeshed, mypy correctly reports the error here.So it seems that mypys dedicated special-casing of
staticmethod
is causing this issue to be incorrectly not reported.contextmanager
decorator is abovestaticmethod
decorator #15911 (comment)The text was updated successfully, but these errors were encountered: