File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 132132 validate_instance ,
133133)
134134from mypy .typeops import (
135- bind_self ,
136135 callable_type ,
137136 custom_special_method ,
138137 erase_to_union_or_bound ,
@@ -2653,10 +2652,9 @@ def check_overload_call(
26532652 funcdef = sym .node
26542653 else :
26552654 name_module , _ , name = callable_name .rpartition ("." )
2656- if (
2657- (module := self .chk .modules .get (name_module )) is not None
2658- and (sym := module .names .get (name )) is not None
2659- ):
2655+ if (module := self .chk .modules .get (name_module )) is not None and (
2656+ sym := module .names .get (name )
2657+ ) is not None :
26602658 funcdef = sym .node
26612659 if isinstance (funcdef , OverloadedFuncDef ):
26622660 for typ , defn in zip (callee .items , funcdef .items ):
Original file line number Diff line number Diff line change 55from collections .abc import Sequence
66from typing import TYPE_CHECKING , Callable , cast
77
8+ import mypy .errorcodes as codes
89from mypy import message_registry , subtypes
910from mypy .erasetype import erase_typevars
10- import mypy .errorcodes as codes
1111from mypy .expandtype import (
1212 expand_self_type ,
1313 expand_type_by_instance ,
You can’t perform that action at this time.
0 commit comments