Skip to content

Commit 1ba5cf1

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

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mypy/checkexpr.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,8 +1486,11 @@ def check_call_expr_with_callee_type(
14861486
proper_callee = get_proper_type(callee_type)
14871487
if isinstance(e.callee, (NameExpr, MemberExpr)):
14881488
node = e.callee.node
1489-
if (node is None) and (member is not None) and isinstance(object_type, Instance) and (
1490-
(symbol := object_type.type.names.get(member)) is not None
1489+
if (
1490+
(node is None)
1491+
and (member is not None)
1492+
and isinstance(object_type, Instance)
1493+
and ((symbol := object_type.type.names.get(member)) is not None)
14911494
):
14921495
node = symbol.node
14931496
self.chk.warn_deprecated_overload_item(

0 commit comments

Comments
 (0)