recognize staticmethod's __func__ #11211
Labels
bug
mypy got something wrong
topic-descriptors
Properties, class vs. instance attributes
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
To Reproduce
Run mypy against this code
p.s. this code snippet is copied from the first solution of https://stackoverflow.com/questions/41921255/staticmethod-object-is-not-callable
Expected Behavior
This code snippet should pass mypy's check.
Actual Behavior
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: