We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbd107 commit f574fefCopy full SHA for f574fef
mypy/checker.py
@@ -8600,7 +8600,11 @@ def reduce_conditional_maps(
8600
def is_singleton_value(t: Type) -> bool:
8601
t = get_proper_type(t)
8602
# 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())
+ ret = (
8604
+ isinstance(t, LiteralType)
8605
+ or t.is_singleton_type()
8606
+ or (isinstance(t, CallableType) and t.is_type_obj())
8607
+ )
8608
# print("!!!", t, type(t), ret)
8609
return ret
8610
0 commit comments