diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
commit | d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c (patch) | |
tree | 4a95cbc6ffdf13bad6ecbc7f8d5af99631984123 /dev-python/sphinx/files | |
parent | e748ba9741f6540f4675c23e3e37b73e822c13a4 (diff) |
gentoo resync : 15.06.2021
Diffstat (limited to 'dev-python/sphinx/files')
-rw-r--r-- | dev-python/sphinx/files/sphinx-4.0.2-py310.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/sphinx/files/sphinx-4.0.2-py310.patch b/dev-python/sphinx/files/sphinx-4.0.2-py310.patch new file mode 100644 index 000000000000..db0facafed5f --- /dev/null +++ b/dev-python/sphinx/files/sphinx-4.0.2-py310.patch @@ -0,0 +1,28 @@ +From 531a5ae9ef855761407d44fb49064ae6227868f5 Mon Sep 17 00:00:00 2001 +From: Takeshi KOMIYA <i.tkomiya@gmail.com> +Date: Wed, 5 May 2021 22:11:41 +0900 +Subject: [PATCH] test: Adjust type annotataions in python 3.10.0b1 + +--- + tests/test_util_inspect.py | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/tests/test_util_inspect.py b/tests/test_util_inspect.py +index 7b86c6ade..8df06a865 100644 +--- a/tests/test_util_inspect.py ++++ b/tests/test_util_inspect.py +@@ -183,10 +183,7 @@ def test_signature_annotations(): + + # Instance annotations + sig = inspect.signature(f11) +- if sys.version_info < (3, 10): +- assert stringify_signature(sig) == '(x: CustomAnnotation, y: 123) -> None' +- else: +- assert stringify_signature(sig) == '(x: CustomAnnotation(), y: 123) -> None' ++ assert stringify_signature(sig) == '(x: CustomAnnotation, y: 123) -> None' + + # tuple with more than two items + sig = inspect.signature(f12) +-- +2.31.1 + |