forked from pool/python-Sphinx
Remove unfinished sphinx-signature-annotations.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=194
This commit is contained in:
@@ -40,9 +40,6 @@ Source1: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%
|
|||||||
Source2: https://docs.python.org/3/objects.inv#/python3.inv
|
Source2: https://docs.python.org/3/objects.inv#/python3.inv
|
||||||
Source3: https://requests.readthedocs.io/en/master/objects.inv#/requests.inv
|
Source3: https://requests.readthedocs.io/en/master/objects.inv#/requests.inv
|
||||||
Source99: python-Sphinx-rpmlintrc
|
Source99: python-Sphinx-rpmlintrc
|
||||||
# PATCH-FIX-UPSTREAM sphinx-signature-annotations.patch bsc#[0-9]+ mcepl@suse.com
|
|
||||||
# take signatures with arguments in both positions.
|
|
||||||
Patch0: sphinx-signature-annotations.patch
|
|
||||||
BuildRequires: %{python_module base}
|
BuildRequires: %{python_module base}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
tests/test_util_inspect.py | 7 ++-----
|
|
||||||
1 file changed, 2 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
--- a/tests/test_util_inspect.py
|
|
||||||
+++ b/tests/test_util_inspect.py
|
|
||||||
@@ -198,11 +198,8 @@ def test_signature_annotations():
|
|
||||||
|
|
||||||
# optional union
|
|
||||||
sig = inspect.signature(f20)
|
|
||||||
- if sys.version_info < (3, 7):
|
|
||||||
- assert stringify_signature(sig) in ('() -> Optional[Union[int, str]]',
|
|
||||||
- '() -> Optional[Union[str, int]]')
|
|
||||||
- else:
|
|
||||||
- assert stringify_signature(sig) == '() -> Optional[Union[int, str]]'
|
|
||||||
+ assert stringify_signature(sig) in ('() -> Optional[Union[int, str]]',
|
|
||||||
+ '() -> Optional[Union[str, int]]')
|
|
||||||
|
|
||||||
# Any
|
|
||||||
sig = inspect.signature(f14)
|
|
Reference in New Issue
Block a user