Skip to content

Commit ef9a659

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mypy/types_utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
AnyType,
1616
CallableType,
1717
Instance,
18+
LiteralType,
1819
NoneType,
1920
Overloaded,
2021
ParamSpecType,
@@ -26,7 +27,6 @@
2627
TypeVarType,
2728
UnionType,
2829
UnpackType,
29-
LiteralType,
3030
flatten_nested_unions,
3131
get_proper_type,
3232
get_proper_types,
@@ -87,9 +87,7 @@ def is_bad_type_type_item(item: Type) -> bool:
8787
if isinstance(item, (TypeType, LiteralType)):
8888
return True
8989
if isinstance(item, UnionType):
90-
return any(
91-
is_bad_type_type_item(typ) for typ in flatten_nested_unions(item.items)
92-
)
90+
return any(is_bad_type_type_item(typ) for typ in flatten_nested_unions(item.items))
9391
return False
9492

9593

0 commit comments

Comments
 (0)