Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13']
python-version: ['3.8', '3.11', '3.12', '3.13']
numpy: ['"numpy<2.0"', "numpy"]
os: [ubuntu-latest]
pytest: [pytest]
Expand Down
4 changes: 2 additions & 2 deletions scipy_doctest/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import inspect
from contextlib import contextmanager

from typing import Sequence
from typing import Sequence, Union

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


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