Skip to content

Commit b77452a

Browse files
committed
Do not do that indefinitely
1 parent 131eef2 commit b77452a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/typeops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def has_deferred_constructor(info: TypeInfo) -> bool:
249249

250250

251251
def _is_deferred_decorator(n: SymbolNode | None) -> bool:
252-
return isinstance(n, Decorator) and n.type is None
252+
return isinstance(n, Decorator) and n.type is None and not n.var.is_ready
253253

254254

255255
def is_valid_constructor(n: SymbolNode | None) -> bool:

0 commit comments

Comments
 (0)