15
0

- 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
This commit is contained in:
2024-11-19 15:13:16 +00:00
committed by Git OBS Bridge
commit 97fb2bd72b
8 changed files with 283 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
---
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