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 aef42a1 commit 54642e8Copy full SHA for 54642e8
src/zarr/storage/_utils.py
@@ -3,20 +3,19 @@
3
from pathlib import Path
4
from typing import TYPE_CHECKING
5
6
-from upath import UPath
7
-
8
if TYPE_CHECKING:
9
from zarr.core.buffer import Buffer
10
11
12
-def normalize_path(path: str | bytes | Path | UPath | None) -> str:
+def normalize_path(path: str | bytes | Path | None) -> str:
13
# handle bytes
14
if path is None:
15
result = ""
16
elif isinstance(path, bytes):
17
result = str(path, "ascii")
18
# ensure str
19
- elif isinstance(path, Path | UPath):
+ # handle pathlib.Path and upath.Path
+ elif isinstance(path, Path):
20
result = str(path)
21
22
elif isinstance(path, str):
0 commit comments