Skip to content

Commit 24ca450

Browse files
committed
Use pathlib.Path explicitly
This makes a more obvious contrast opposed to zarr's built-in `Path` type annotation (for internal keys).
1 parent 14110a0 commit 24ca450

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

zarr/storage.py

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import multiprocessing
2121
import operator
2222
import os
23-
from pathlib import Path
2423
import re
2524
import shutil
2625
import sys

zarr/tests/conftest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from pathlib import Path
1+
import pathlib
22

33
import pytest
44

55

6-
@pytest.fixture(params=[str, Path])
6+
@pytest.fixture(params=[str, pathlib.Path])
77
def path_type(request):
88
return request.param

zarr/tests/test_storage.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import atexit
33
import json
44
import os
5-
from pathlib import Path
5+
import pathlib
66
import sys
77
import pickle
88
import shutil
@@ -840,7 +840,7 @@ def test_filesystem_path(self):
840840
def test_init_pathlib(self):
841841
path = tempfile.mkdtemp()
842842
atexit.register(atexit_rmtree, path)
843-
DirectoryStore(Path(path))
843+
DirectoryStore(pathlib.Path(path))
844844

845845
def test_pickle_ext(self):
846846
store = self.create_store()

0 commit comments

Comments
 (0)