Skip to content

Commit bd9d1a9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0c3bd81 commit bd9d1a9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

mypy/checkexpr.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@
132132
validate_instance,
133133
)
134134
from 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):

mypy/checkmember.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from collections.abc import Sequence
66
from typing import TYPE_CHECKING, Callable, cast
77

8+
import mypy.errorcodes as codes
89
from mypy import message_registry, subtypes
910
from mypy.erasetype import erase_typevars
10-
import mypy.errorcodes as codes
1111
from mypy.expandtype import (
1212
expand_self_type,
1313
expand_type_by_instance,

0 commit comments

Comments
 (0)