We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50c222a commit 88fd64cCopy full SHA for 88fd64c
scipy_doctest/util.py
@@ -10,7 +10,7 @@
10
import inspect
11
from contextlib import contextmanager
12
13
-from typing import Sequence
+from typing import Sequence, Union
14
15
from importlib.metadata import version as get_version, PackageNotFoundError
16
from packaging.requirements import Requirement
@@ -259,7 +259,7 @@ def get_public_objects(module, skiplist=None):
259
return (items, names), failures
260
261
262
-def is_req_satisfied(req_strs: str | Sequence[str]) -> bool:
+def is_req_satisfied(req_strs: Union[str, Sequence[str]]) -> bool:
263
""" Check if all PEP 508-compliant requirement(s) are satisfied or not.
264
"""
265
req_strs = [req_strs] if isinstance(req_strs, str) else req_strs
0 commit comments