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 c954f78 commit 00897abCopy full SHA for 00897ab
mypy/checkexpr.py
@@ -1682,7 +1682,7 @@ def check_callable_call(
1682
elif isinstance(callable_node.node, TypeAlias):
1683
alias_target = get_proper_type(callable_node.node.target)
1684
if isinstance(alias_target, Instance) and isinstance(alias_target.type, TypeInfo):
1685
- callable_info = callable_node.node.target.type
+ callable_info = alias_target.type
1686
if callable_info is not None:
1687
self.chk.check_deprecated(callee.definition, context)
1688
0 commit comments