-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
recognize staticmethod's __func__ #11211
Copy link
Copy link
Open
Labels
bugmypy got something wrongmypy got something wrongtopic-descriptorsProperties, class vs. instance attributesProperties, class vs. instance attributestopic-runtime-semanticsmypy doesn't model runtime semantics correctlymypy doesn't model runtime semantics correctly
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-descriptorsProperties, class vs. instance attributesProperties, class vs. instance attributestopic-runtime-semanticsmypy doesn't model runtime semantics correctlymypy 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): none