Skip to content

Commit 00897ab

Browse files
committed
fix unexpanded type check error
1 parent c954f78 commit 00897ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checkexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ def check_callable_call(
16821682
elif isinstance(callable_node.node, TypeAlias):
16831683
alias_target = get_proper_type(callable_node.node.target)
16841684
if isinstance(alias_target, Instance) and isinstance(alias_target.type, TypeInfo):
1685-
callable_info = callable_node.node.target.type
1685+
callable_info = alias_target.type
16861686
if callable_info is not None:
16871687
self.chk.check_deprecated(callee.definition, context)
16881688

0 commit comments

Comments
 (0)