Skip to content

Commit 70bd394

Browse files
Unnecessary None provided as default (#900)
1 parent e6483f9 commit 70bd394

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

zarr/convenience.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def open(store: StoreLike = None, mode: str = "a", **kwargs):
7575
7676
"""
7777

78-
path = kwargs.get('path', None)
78+
path = kwargs.get('path')
7979
# handle polymorphic store arg
8080
clobber = mode == 'w'
8181
# we pass storage options explicitly, since normalize_store_arg might construct
@@ -1179,7 +1179,7 @@ def open_consolidated(store: StoreLike, metadata_key=".zmetadata", mode="r+", **
11791179
from .storage import ConsolidatedMetadataStore
11801180

11811181
# normalize parameters
1182-
store = normalize_store_arg(store, storage_options=kwargs.get("storage_options", None))
1182+
store = normalize_store_arg(store, storage_options=kwargs.get("storage_options"))
11831183
if mode not in {'r', 'r+'}:
11841184
raise ValueError("invalid mode, expected either 'r' or 'r+'; found {!r}"
11851185
.format(mode))

zarr/creation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def array(data, **kwargs):
339339
data = np.asanyarray(data)
340340

341341
# setup dtype
342-
kw_dtype = kwargs.get('dtype', None)
342+
kw_dtype = kwargs.get('dtype')
343343
if kw_dtype is None:
344344
kwargs['dtype'] = data.dtype
345345
else:
@@ -348,7 +348,7 @@ def array(data, **kwargs):
348348
# setup shape and chunks
349349
data_shape, data_chunks = _get_shape_chunks(data)
350350
kwargs['shape'] = data_shape
351-
kw_chunks = kwargs.get('chunks', None)
351+
kw_chunks = kwargs.get('chunks')
352352
if kw_chunks is None:
353353
kwargs['chunks'] = data_chunks
354354
else:

zarr/tests/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,7 @@ class TestArrayWithFilters(TestArray):
23052305
@staticmethod
23062306
def create_array(read_only=False, **kwargs):
23072307
store = KVStore(dict())
2308-
dtype = kwargs.get('dtype', None)
2308+
dtype = kwargs.get('dtype')
23092309
filters = [
23102310
Delta(dtype=dtype),
23112311
FixedScaleOffset(dtype=dtype, scale=1, offset=0),

0 commit comments

Comments
 (0)