Skip to content

Commit 9b9354a

Browse files
committed
Avoid bogus errors about untyped decorators in deferred nodes
1 parent 8269952 commit 9b9354a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/checker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5335,6 +5335,7 @@ def check_for_untyped_decorator(
53355335
self.options.disallow_untyped_decorators
53365336
and is_typed_callable(func.type)
53375337
and is_untyped_decorator(dec_type)
5338+
and not self.current_node_deferred
53385339
):
53395340
self.msg.typed_function_untyped_decorator(func.name, dec_expr)
53405341

0 commit comments

Comments
 (0)