Skip to content

Commit e675cc8

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

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

mypy/messages.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -405,39 +405,37 @@ def has_no_attr(
405405
return codes.OPERATOR
406406
elif member == "__neg__":
407407
display_type = (
408-
self.pretty_callable_or_overload(original_type)
409-
if isinstance(original_type, CallableType)
410-
else format_type(original_type, self.options)
411-
)
408+
self.pretty_callable_or_overload(original_type)
409+
if isinstance(original_type, CallableType)
410+
else format_type(original_type, self.options)
411+
)
412412
self.fail(
413-
f"Unsupported operand type for unary - ({display_type})",
414-
context,
415-
code=codes.OPERATOR,
416-
)
413+
f"Unsupported operand type for unary - ({display_type})",
414+
context,
415+
code=codes.OPERATOR,
416+
)
417417
return codes.OPERATOR
418418
elif member == "__pos__":
419419

420-
display_type=(
420+
display_type = (
421421
self.pretty_callable_or_overload(original_type)
422422
if isinstance(original_type, CallableType)
423423
else format_type(original_type, self.options)
424424
)
425425
self.fail(
426-
f"Unsupported operand type for unary + ({display_type})",
426+
f"Unsupported operand type for unary + ({display_type})",
427427
context,
428428
code=codes.OPERATOR,
429429
)
430430
return codes.OPERATOR
431431
elif member == "__invert__":
432-
display_type=(
432+
display_type = (
433433
self.pretty_callable_or_overload(original_type)
434434
if isinstance(original_type, CallableType)
435435
else format_type(original_type, self.options)
436436
)
437437
self.fail(
438-
f"Unsupported operand type for ~ ({display_type})",
439-
context,
440-
code=codes.OPERATOR,
438+
f"Unsupported operand type for ~ ({display_type})", context, code=codes.OPERATOR
441439
)
442440
return codes.OPERATOR
443441
elif member == "__getitem__":

0 commit comments

Comments
 (0)