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 ff5ab81 commit 88fe21dCopy full SHA for 88fe21d
mypy/checker.py
@@ -2208,7 +2208,7 @@ def visit_decorator(self, e: Decorator) -> None:
2208
sig = self.function_type(e.func) # type: Type
2209
# Process decorators from the inside out.
2210
for d in reversed(e.decorators):
2211
- if isinstance(d, NameExpr) and d.fullname == 'typing.overload':
+ if refers_to_fullname(d, 'typing.overload'):
2212
self.fail('Single overload definition, multiple required', e)
2213
continue
2214
dec = self.expr_checker.accept(d)
0 commit comments