File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1679,12 +1679,10 @@ def check_callable_call(
16791679 callable_info : TypeInfo | None = None
16801680 if isinstance (callable_node .node , TypeInfo ):
16811681 callable_info = callable_node .node
1682- elif (
1683- isinstance (callable_node .node , TypeAlias )
1684- and isinstance (callable_node .node .target , Instance )
1685- and isinstance (callable_node .node .target .type , TypeInfo )
1686- ):
1687- callable_info = callable_node .node .target .type
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
16881686 if callable_info is not None :
16891687 self .chk .check_deprecated (callee .definition , context )
16901688
You can’t perform that action at this time.
0 commit comments