-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongtopic-descriptorsProperties, class vs. instance attributesProperties, class vs. instance attributes
Description
We have decorators that decorate the property not the getter function,
and which must be declared BEFORE the property decorator:
@mydecorator
@property
def foo(self):
pass
Mypy does not support this and produces the error: Decorators on top of @property are not supported
It is fine if mypy does not support this yet, but why do we have to suffer this utterly useless warning? I shouldn't have to pollute my code with comments to shut up mypy.
Instead, mypy should either simply ignore such decorators or should at least provide an option to let the user globally
shut off such "not implemented" errors.
And if you are going to produce errors like this, at least give them a "not-implemented" category instead of just using "misc".
This is the unfixed part of bug #1362.
mhostetter, anentropic, michasng, mikkelam, lokesh1199 and 17 more
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-descriptorsProperties, class vs. instance attributesProperties, class vs. instance attributes