15
0
Files
python-inflect/typing_extensions-version.patch
Dirk Mueller 97fb2bd72b - Do not (ever) use %python_modules on runtime requires: it pulls
in all python flavors. Change to Requires: python-typeguard which
  will be rewritten by the python singlespec machinery.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-inflect?expand=0&rev=25
2024-11-19 15:13:16 +00:00

17 lines
359 B
Diff

---
inflect/compat/py38.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/inflect/compat/py38.py
+++ b/inflect/compat/py38.py
@@ -1,7 +1,7 @@
import sys
-if sys.version_info >= (3, 9):
+try:
from typing import Annotated
-else: # pragma: no cover
+except ImportError:
from typing_extensions import Annotated # noqa: F401