Skip to content

Commit f9f4cd3

Browse files
authored
Drop unused Python 3.7 compatibility code (#406)
Now that Python 3.8 is the minimum supported version, there is no need for this `typing_extensions` branch or a dependency on `typing-extensions`. So drop both to cleanup the code. Also should bring coverage back up.
1 parent 4a029c9 commit f9f4cd3

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

docs/release.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Maintenance
4444
By :user:`Dimitri Papadopoulos Orfanos <DimitriPapadopoulos>`, :issue:`369`.
4545

4646
* Drop Python 3.7.
47-
By :user:`John Kirkham <jakirkham>`, :issue:`405`.
47+
By :user:`John Kirkham <jakirkham>`,, :issue:`405` :issue:`406`.
4848

4949
* Test with zfpy 1.0.0.
5050
By :user:`John Kirkham <jakirkham>`, :issue:`385`.

numcodecs/ndarray_like.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import sys
2-
from typing import Any, Dict, Optional, Tuple, Type
3-
4-
if sys.version_info >= (3, 8):
5-
from typing import Protocol, runtime_checkable
6-
else:
7-
from typing_extensions import Protocol, runtime_checkable
1+
from typing import Any, Dict, Optional, Protocol, Tuple, Type, runtime_checkable
82

93

104
class _CachedProtocolMeta(Protocol.__class__):

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ readme = "README.rst"
1717
dependencies = [
1818
"entrypoints",
1919
"numpy>=1.7",
20-
"typing-extensions>=3.7.4"
2120
]
2221
requires-python = ">=3.8"
2322
dynamic = [

0 commit comments

Comments
 (0)