We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c45c3f commit 5f9e15aCopy full SHA for 5f9e15a
mypy/semanal.py
@@ -7157,7 +7157,7 @@ def already_defined(
7157
self.fail(
7158
f'{noun} "{unmangle(name)}" already defined{extra_msg}', ctx, code=codes.NO_REDEF
7159
)
7160
- if isinstance(node, Decorator) and node.func.is_property:
+ if isinstance(ctx, Decorator) and isinstance(node, Decorator) and node.func.is_property:
7161
self.note("Property setter and deleter must be adjacent to the getter.", ctx)
7162
7163
def name_already_defined(
0 commit comments