-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-1-normaltopic-descriptorsProperties, class vs. instance attributesProperties, class vs. instance attributes
Description
The following code incorrectly raises an error:
class Config(object):
@property
def my_proprty(self):
return None
def _other(self):
pass
@my_proprty.setter
def my_proprty(self, val):
pass
Error:
mypytest.py: note: In class "Config":
mypytest.py:12: error: Callable[[Any], Any] has no attribute "setter"
Commenting out the _other
method will fix the error.
edwardcwang, MartinThoma, blaise17, fpagnoux, forrestchang and 43 more
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-1-normaltopic-descriptorsProperties, class vs. instance attributesProperties, class vs. instance attributes