Skip to content

Commit 7dd7ef9

Browse files
authored
Merge pull request #211 from scipy/min_python_on_ci
CI: test on python 3.8, too
2 parents ab565a2 + 5f6e7df commit 7dd7ef9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/pip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
python-version: ['3.11', '3.12', '3.13']
17+
python-version: ['3.8', '3.11', '3.12', '3.13']
1818
numpy: ['"numpy<2.0"', "numpy"]
1919
os: [ubuntu-latest]
2020
pytest: [pytest]

scipy_doctest/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import inspect
1111
from contextlib import contextmanager
1212

13-
from typing import Sequence
13+
from typing import Sequence, Union
1414

1515
from importlib.metadata import version as get_version, PackageNotFoundError
1616
from packaging.requirements import Requirement
@@ -259,7 +259,7 @@ def get_public_objects(module, skiplist=None):
259259
return (items, names), failures
260260

261261

262-
def is_req_satisfied(req_strs: str | Sequence[str]) -> bool:
262+
def is_req_satisfied(req_strs: Union[str, Sequence[str]]) -> bool:
263263
""" Check if all PEP 508-compliant requirement(s) are satisfied or not.
264264
"""
265265
req_strs = [req_strs] if isinstance(req_strs, str) else req_strs

0 commit comments

Comments
 (0)