Skip to content

Commit da585e4

Browse files
committed
Use os.PathLike instead of Path for type checks
1 parent 419bce3 commit da585e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zarr/creation.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
from pathlib import Path
32
from warnings import warn
43

54
import numpy as np
@@ -150,7 +149,7 @@ def create(shape, chunks=True, dtype=None, compressor='default',
150149
def normalize_store_arg(store, clobber=False, storage_options=None, mode='w'):
151150
if store is None:
152151
return dict()
153-
if isinstance(store, Path):
152+
if isinstance(store, os.PathLike):
154153
store = os.fspath(store)
155154
if isinstance(store, str):
156155
mode = mode if clobber else "r"

0 commit comments

Comments
 (0)