Skip to content

Commit 69e971e

Browse files
committed
Fix python 3.14 support (typing.ByteString removed in 3.14)
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
1 parent 47e64af commit 69e971e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyistp/drivers/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import logging, os
22
import importlib
3-
from typing import Callable, ByteString
3+
from typing import Callable
44
from ._driver import Driver
55

66
log = logging.getLogger(__name__)
77

88

9-
def _load_cdf_lib() -> Callable[[str or ByteString], Driver]:
9+
def _load_cdf_lib() -> Callable[[str or bytes or bytearray or memoryview], Driver]:
1010
available_libs = ["pycdfpp", "spacepy"]
1111
try_first_lib = os.environ.get("PYISTP_CDFLIB", "pycdfpp")
1212
available_libs.remove(try_first_lib)

0 commit comments

Comments
 (0)