forked from pool/python-sphinx-autodoc-typehints
Dirk Mueller
11e9016533
* Allow Sphinx explicitly to write in parallel. * Fixed crash when documenting ParamSpecArgs * Fixed a bug where if a class has an attribute and a constructor argument with the same name, the constructor argument type would be rendered incorrectly (issue 308) * Fixed napoleon handling of numpy docstrings with no specified return type. * Fix a `Field list ends without a blank line` warning (issue 305). * More robust determination of rtype location / fix issue 302 * Improvements to the location of the return type * Use format_annotation to render class attribute type annotations * Fix overloads support * Fix spacing between `:rtype:` and directives * Handle types from types module * If module is \_io, use io instead * Put rtype before examples or usage section * Remove redundant return type for attributes * Handle collections.abc.Callable as well as typing.Callable * Put Literal args in code blocks * Fix Optional role to be data. * Fixed default options not displaying for parameters without type hints. * Use hatchling instead of setuptools * Add support for typing.ParamSpec * Allow star prefixes for parameter names in docstring - Update to version 1.19.2 python-sphinx-autodoc-typehints-system-object.inv.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=43
28 lines
1.0 KiB
Diff
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)
|