Skip to content

Commit 41381b1

Browse files
committed
up
1 parent bcada5b commit 41381b1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/diffusers/utils/typing_utils.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@
1616
"""
1717

1818
from typing import Any, Set, Type, Union, get_args, get_origin
19-
20-
21-
try:
22-
from types import UnionType as _UnionType
23-
except ImportError: # Python < 3.10
24-
_UnionType = None
25-
19+
from types import UnionType as _UnionType
2620

2721
def _is_valid_type(obj: Any, class_or_tuple: Type | tuple[Type, ...]) -> bool:
2822
"""

0 commit comments

Comments
 (0)