Skip to content

Commit b29984a

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

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

mypy/checker.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8600,15 +8600,19 @@ def reduce_conditional_maps(
86008600
def is_singleton_value(t: Type) -> bool:
86018601
t = get_proper_type(t)
86028602
# TODO: check the type object thing
8603-
ret = isinstance(t, LiteralType) or t.is_singleton_type() or (isinstance(t, CallableType) and t.is_type_obj())
8603+
ret = (
8604+
isinstance(t, LiteralType)
8605+
or t.is_singleton_type()
8606+
or (isinstance(t, CallableType) and t.is_type_obj())
8607+
)
86048608
# print("!!!", t, type(t), ret)
86058609
return ret
86068610

86078611

86088612
def has_no_custom_eq_checks(t: Type) -> bool:
8609-
return not custom_special_method(
8610-
t, "__eq__", check_all=False
8611-
) and not custom_special_method(t, "__ne__", check_all=False)
8613+
return not custom_special_method(t, "__eq__", check_all=False) and not custom_special_method(
8614+
t, "__ne__", check_all=False
8615+
)
86128616

86138617

86148618
def is_type_call(expr: CallExpr) -> bool:

0 commit comments

Comments
 (0)