Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-jedi for openSUSE:Factory checked in at 2023-01-11 17:14:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jedi (Old) and /work/SRC/openSUSE:Factory/.python-jedi.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jedi" Wed Jan 11 17:14:19 2023 rev:35 rq:1057681 version:0.18.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jedi/python-jedi.changes 2023-01-05 14:59:49.160776822 +0100 +++ /work/SRC/openSUSE:Factory/.python-jedi.new.32243/python-jedi.changes 2023-01-11 17:14:23.443595156 +0100 @@ -1,0 +2,6 @@ +Tue Jan 10 04:01:51 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com> + +- Add patch support-python-311-typing.patch: + * Support typing changes for Python 3.11+ + +------------------------------------------------------------------- New: ---- support-python-311-typing.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jedi.spec ++++++ --- /var/tmp/diff_new_pack.7All2j/_old 2023-01-11 17:14:24.471601137 +0100 +++ /var/tmp/diff_new_pack.7All2j/_new 2023-01-11 17:14:24.475601160 +0100 @@ -26,6 +26,8 @@ URL: https://github.com/davidhalter/jedi Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz Source1: %{name}-rpmlintrc +# PATCH-FIX-UPSTREAM gh#davidhalter/jedi#1903 +Patch0: support-python-311-typing.patch BuildRequires: %{python_module parso >= 0.8.0 with %python-parso < 0.9} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 5} ++++++ support-python-311-typing.patch ++++++ >From 00e23ddcee220110086621ff5922fb9cffddf60a Mon Sep 17 00:00:00 2001 From: Steve Kowalik <ste...@wedontsleep.org> Date: Tue, 10 Jan 2023 14:52:24 +1100 Subject: [PATCH] Support Python 3.11 typing changes Python 3.11 has changed typing so that unions now return forward refrences instead of erroring, and typing.Any is now an _AnyMeta class. Correct the parameters for both of those. Fixes #1858 --- test/test_api/test_interpreter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_api/test_interpreter.py b/test/test_api/test_interpreter.py index 848bca746..8e69cafc9 100644 --- a/test/test_api/test_interpreter.py +++ b/test/test_api/test_interpreter.py @@ -656,10 +656,12 @@ def bar(): ({'return': 'typing.Union[str, int]'}, ['int', 'str'], ''), ({'return': 'typing.Union["str", int]'}, ['int', 'str'] if sys.version_info >= (3, 9) else ['int'], ''), - ({'return': 'typing.Union["str", 1]'}, [], ''), + ({'return': 'typing.Union["str", 1]'}, + ['str'] if sys.version_info >= (3, 11) else [], ''), ({'return': 'typing.Optional[str]'}, ['NoneType', 'str'], ''), ({'return': 'typing.Optional[str, int]'}, [], ''), # Takes only one arg - ({'return': 'typing.Any'}, [], ''), + ({'return': 'typing.Any'}, + ['_AnyMeta'] if sys.version_info >= (3, 11) else [], ''), ({'return': 'typing.Tuple[int, str]'}, ['Tuple' if sys.version_info[:2] == (3, 6) else 'tuple'], ''),