forked from pool/python-sphinx-autodoc-typehints
1b523451b8
- version update to 1.10.3 * Fixed ``TypeError`` (or wrong rendered class name) when an annotation is a generic class that has a ``name`` property * Fixed inner classes missing their parent class name(s) when rendered * Fixed ``KeyError`` when encountering mocked annotations (``autodoc_mock_imports``) * Rewrote the annotation formatting logic (fixes Python 3.5.2 compatibility regressions and an ``AttributeError`` regression introduced in v1.9.0) * Fixed decorator classes not being processed as classes * Added support for typing_extensions_ * Added the ``typehints_document_rtype`` option (PR by Simon-Martin Schröder) * Fixed metaclasses as annotations causing ``TypeError`` * Fixed rendering of ``typing.Literal`` * Fixed OSError when generating docs for SQLAlchemy mapped classes * Fixed unparametrized generic classes being rendered with their type parameters (e.g. ``Dict[~KT, ~VT]``) - added patches fix use object.inv which comes with python-doc + python-sphinx-autodoc-typehints-system-object.inv.patch OBS-URL: https://build.opensuse.org/request/show/782143 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=12
18 lines
859 B
Diff
18 lines
859 B
Diff
Index: sphinx-autodoc-typehints-1.10.3/tests/conftest.py
|
|
===================================================================
|
|
--- sphinx-autodoc-typehints-1.10.3.orig/tests/conftest.py 2019-11-11 20:10:08.000000000 +0100
|
|
+++ sphinx-autodoc-typehints-1.10.3/tests/conftest.py 2020-03-06 15:49:28.411760937 +0100
|
|
@@ -13,10 +13,8 @@ collect_ignore = ['roots']
|
|
|
|
@pytest.fixture(scope='session')
|
|
def inv(pytestconfig):
|
|
- cache_path = 'python{v.major}.{v.minor}/objects.inv'.format(v=sys.version_info)
|
|
- inv_dict = pytestconfig.cache.get(cache_path, None)
|
|
- if inv_dict is not None:
|
|
- return Inventory(inv_dict)
|
|
+ inv_dict = '/usr/share/doc/packages/python3/html/objects.inv'
|
|
+ return Inventory(inv_dict)
|
|
|
|
print("Downloading objects.inv")
|
|
url = 'https://docs.python.org/{v.major}.{v.minor}/objects.inv'.format(v=sys.version_info)
|