Skip to content

Commit 8aabd64

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 54b33c4 commit 8aabd64

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

mypy/checkexpr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2813,7 +2813,9 @@ def check_overload_call(
28132813
code = None
28142814
else:
28152815
code = codes.OPERATOR
2816-
self.msg.no_variant_matches_arguments(callee, arg_types, context, arg_names=arg_names, arg_kinds=arg_kinds, code=code)
2816+
self.msg.no_variant_matches_arguments(
2817+
callee, arg_types, context, arg_names=arg_names, arg_kinds=arg_kinds, code=code
2818+
)
28172819

28182820
result = self.check_call(
28192821
target,

mypy/messages.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,9 @@ def no_variant_matches_arguments(
11631163
code=code,
11641164
)
11651165
for item in overload.items:
1166-
self.note(pretty_callable(item, self.options), context, offset=4, code=code)
1166+
self.note(
1167+
pretty_callable(item, self.options), context, offset=4, code=code
1168+
)
11671169

11681170
return
11691171

test-data/unit/check-expressions.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2578,4 +2578,4 @@ f(fobar=1) # E: Unexpected keyword argument "fobar" for overloaded function "f"
25782578
f(random=[1,2,3]) # E: Unexpected keyword argument "random" for overloaded function "f" \
25792579
# N: Possible overload variants: \
25802580
# N: def f(foobar: int) -> None \
2581-
# N: def f(foobar: str) -> None
2581+
# N: def f(foobar: str) -> None

0 commit comments

Comments
 (0)