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 89695cd commit 538d364Copy full SHA for 538d364
mypy/stubtest.py
@@ -784,7 +784,7 @@ def _resolve_funcitem_from_decorator(dec: nodes.OverloadPart) -> Optional[nodes.
784
def apply_decorator_to_funcitem(
785
decorator: nodes.Expression, func: nodes.FuncItem
786
) -> Optional[nodes.FuncItem]:
787
- if not isinstance(decorator, nodes.NameExpr):
+ if not isinstance(decorator, nodes.RefExpr):
788
return None
789
if decorator.fullname is None:
790
# Happens with namedtuple
0 commit comments