Skip to content

Commit ffdb481

Browse files
committed
fix: fix type hint
1 parent 63b6f1c commit ffdb481

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

upath/implementations/cloud.py

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,26 @@
22

33
import sys
44
from collections.abc import Iterator
5-
from typing import TYPE_CHECKING
6-
from typing import Any
5+
from typing import Any, Literal
76

87
from upath._chain import DEFAULT_CHAIN_PARSER
98
from upath._flavour import upath_strip_protocol
109
from upath.core import UPath
1110
from upath.types import JoinablePathLike
1211

13-
if TYPE_CHECKING:
14-
from typing import Literal
15-
16-
if sys.version_info >= (3, 11):
17-
from typing import Self
18-
from typing import Unpack
19-
else:
20-
from typing_extensions import Self
21-
from typing_extensions import Unpack
22-
23-
from upath._chain import FSSpecChainParser
24-
from upath.types.storage_options import AzureStorageOptions
25-
from upath.types.storage_options import GCSStorageOptions
26-
from upath.types.storage_options import HfStorageOptions
27-
from upath.types.storage_options import S3StorageOptions
12+
13+
if sys.version_info >= (3, 11):
14+
from typing import Self
15+
from typing import Unpack
16+
else:
17+
from typing_extensions import Self
18+
from typing_extensions import Unpack
19+
20+
from upath._chain import FSSpecChainParser
21+
from upath.types.storage_options import AzureStorageOptions
22+
from upath.types.storage_options import GCSStorageOptions
23+
from upath.types.storage_options import HfStorageOptions
24+
from upath.types.storage_options import S3StorageOptions
2825

2926
__all__ = [
3027
"CloudPath",

0 commit comments

Comments
 (0)