Files
python-sphinx-autodoc-typeh…/python-sphinx-autodoc-typehints-system-object.inv.patch
Matej Cepl 25562bf16f - Update to 3.1.0:
- Support Sphinx 8.2.0 - drop 3.10 support because Sphinx does
- Update to 3.0.1:
  - Fix roles for types module
  - Update Ruff to 0.9.1
- Update to 3.0.0:
  - 🐛 Replace docutils private API use w/ public
  - Drop support for nptyping
- Update to 2.5.0:
  - Fix the type checker
  - Apply typehints_formatter to signature

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=56
2025-04-03 12:58:40 +00:00

28 lines
1.0 KiB
Diff

---
tests/conftest.py | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
Index: sphinx_autodoc_typehints-1.25.2/tests/conftest.py
===================================================================
--- sphinx_autodoc_typehints-1.25.2.orig/tests/conftest.py
+++ sphinx_autodoc_typehints-1.25.2/tests/conftest.py
@@ -19,16 +19,8 @@ collect_ignore = ["roots"]
@pytest.fixture(scope="session")
def inv(pytestconfig: Config) -> Inventory:
- cache_path = f"python{sys.version_info.major}.{sys.version_info.minor}/objects.inv"
- assert pytestconfig.cache is not None
- inv_dict = pytestconfig.cache.get(cache_path, None)
- if inv_dict is not None:
- return Inventory(inv_dict)
-
- url = f"https://docs.python.org/{sys.version_info.major}.{sys.version_info.minor}/objects.inv"
- inv = Inventory(url=url)
- pytestconfig.cache.set(cache_path, inv.json_dict())
- return inv
+ inv_dict = '/usr/share/doc/packages/python@PYTHON_VERSION@/html/objects.inv'
+ return Inventory(inv_dict)
@pytest.fixture(autouse=True)