Skip to content

Commit 54642e8

Browse files
committed
remove upath import because we don't need it
1 parent aef42a1 commit 54642e8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/zarr/storage/_utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@
33
from pathlib import Path
44
from typing import TYPE_CHECKING
55

6-
from upath import UPath
7-
86
if TYPE_CHECKING:
97
from zarr.core.buffer import Buffer
108

119

12-
def normalize_path(path: str | bytes | Path | UPath | None) -> str:
10+
def normalize_path(path: str | bytes | Path | None) -> str:
1311
# handle bytes
1412
if path is None:
1513
result = ""
1614
elif isinstance(path, bytes):
1715
result = str(path, "ascii")
1816
# ensure str
19-
elif isinstance(path, Path | UPath):
17+
# handle pathlib.Path and upath.Path
18+
elif isinstance(path, Path):
2019
result = str(path)
2120

2221
elif isinstance(path, str):

0 commit comments

Comments
 (0)