Skip to content

Commit 922ab23

Browse files
Unnecessary None provided as default (#395)
1 parent 7bc303a commit 922ab23

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/release.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Fix
2121
Maintenance
2222
~~~~~~~~~~~
2323

24+
* Remove unnecessary None argument to .get(), it is the default value.
25+
By :user:`Dimitri Papadopoulos Orfanos <DimitriPapadopoulos>`, :issue:`395`.
26+
2427
* Apply refurb suggestions.
2528
By :user:`Dimitri Papadopoulos Orfanos <DimitriPapadopoulos>`, :issue:`372`.
2629

numcodecs/ndarray_like.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class _CachedProtocolMeta(Protocol.__class__):
2020

2121
def __instancecheck__(self, instance):
2222
key = (self, instance.__class__)
23-
ret = self._instancecheck_cache.get(key, None)
23+
ret = self._instancecheck_cache.get(key)
2424
if ret is None:
2525
ret = super().__instancecheck__(instance)
2626
self._instancecheck_cache[key] = ret

0 commit comments

Comments
 (0)