Skip to content

Commit 1bc1e44

Browse files
madsbkjakirkham
andauthored
Codec is now derived from abc.ABC (#472)
* Codec is now derived from abc.ABC * Add release note for `Codec(ABC)` --------- Co-authored-by: jakirkham <[email protected]>
1 parent 98a14f3 commit 1bc1e44

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/release.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ Release notes
66
# to document your changes. On releases it will be
77
# re-indented so that it does not show up in the notes.
88
9+
.. _release_0.12.1:
10+
11+
0.12.1
12+
------
13+
14+
Fix
15+
~~~
16+
17+
* `Codec` is now derived from `abc.ABC`
18+
By :user:`Mads R. B. Kristensen <madsbk>`, :issue:`472`.
919

1020
.. _release_0.12.0:
1121

numcodecs/abc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
"""
3030

3131

32-
from abc import abstractmethod
32+
from abc import ABC, abstractmethod
3333

3434

35-
class Codec:
35+
class Codec(ABC):
3636
"""Codec abstract base class."""
3737

3838
# override in sub-class

0 commit comments

Comments
 (0)