Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mypy for openSUSE:Factory checked in at 2022-08-10 17:12:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mypy (Old) and /work/SRC/openSUSE:Factory/.mypy.new.1521 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mypy" Wed Aug 10 17:12:25 2022 rev:30 rq:993558 version:0.971 Changes: -------- --- /work/SRC/openSUSE:Factory/mypy/mypy.changes 2022-06-29 16:01:56.184668878 +0200 +++ /work/SRC/openSUSE:Factory/.mypy.new.1521/mypy.changes 2022-08-10 17:12:32.525589298 +0200 @@ -1,0 +2,83 @@ +Sat Aug 6 15:12:25 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Update Requirements +- Add mypy-pr13259-walrus.patch -- gh#python/mypy#13259 + * fix test failures with Python >= 3.10.6 + +------------------------------------------------------------------- +Sat Aug 6 14:10:01 UTC 2022 - Matej Cepl <mc...@suse.com> + +- Update to 0.971: + - Last Release Officially Supporting Python 2 and 3.6: + - Support for Python 2 will be completely removed in the next + mypy feature release after this one, mypy 0.980. + - Support for Python 3.6 will also be dropped in mypy 0.980, + since Python 3.6 has reached its end of life. It will be + still possible to target Python 3.6 using --python-version + in future mypy versions, but no bugs will be fixed that + affect only Python 3.6 (unless they are regressions). Also + note that typeshed just recently dropped Python 3.6 + support, so standard library features only available in + Python 3.6 will not be supported. + on https://mypy-lang.blogspot.com/2022/07/mypy-0971-released.html + - Mypyc Improvements and Fixes + * Speed up accessing always defined native attributes (Jukka + Lehtosalo, PR 12600) + * Reduce the overhead of reference counting (Jukka Lehtosalo, + PR 12805, PR 12810, PR 12817) + * Fix Python 3.11 C API errors (97littleleaf11, PR 12850) + * Generate smaller code for casts and some implicit type + coercions (Jukka Lehtosalo, PR 12839) + * Optimize calling Python objects with zero or one arguments + (97littleleaf11, PR 12862) + * Replace integer floor division by a power of two with a shift + (Jukka Lehtosalo, PR 12870) + * Add primitives for faster access of float and tuple type + objects (Richard Si, PR 13078) + * Fix compile error related to operator assignment in a + generator function (Zsolt Dollenstein, PR 13144) + - Stubtest Improvements + * Allow ellipsis as default argument (Shantanu, PR 12838) + * Support --version (Shantanu, PR 12852) + * Check type variables and ParamSpecs (Shantanu, PR 12851) + * Add error summary and other output tweaks (KotlinIsland, PR + 12855) + - Other Notable Fixes and Improvements + * Disallow assignments to awaited coroutines that do not return + (Shantanu, PR 12853) + * Search sys.path for PEP 561 compliant packages (Ashley + Whetter, PR 11143) + * Treat generators with await as async (Jared Hance, PR 12925) + * Fix bug in constraints solver regarding ParamSpec upper + bounds (Alex Waygood, PR 12938) + * Fix crash on redefined class variable annotated with + Final[<type>] (Alex Waygood, PR 12951) + * Improve handling of overloads with ParamSpec (Alex Waygood, + PR 12953) + * Don???t suggest installing types packages for some third-party + packages that now include types or are obsolete (Shantanu, PR + 12959) + * Add a short note when an error may be fixed by adding an + await (Ivan Levkivskyi, PR 12958) + * Support unannotated converters for attr.ib (t4lz, PR 12815) + * Disallow undesirable implicit reexport with a from import + (Shantanu, PR 12704) + * Fix crash when subclass method has the same name as a type + alias (Wesley Collin Wright, PR 13015) + * Include end column offset in the mypy AST (bruno messias, PR + 12972) + * Fix "attribute 'arguments' of 'FuncDef' undefined" + incremental crash (Fr??d??ric Perrin, PR 12324) + * Fix false positive error on multiple enum base classes (Alex + Waygood, PR 12963) + * Don't add __match_args__ for dataclasses and named tuples on + Python versions lower than 3.10 (Stanislav K, PR 12503) + * Fix crash when overriding partial-type attribute with method + (Jake Lishman, PR 12943) + * Fix editable installs to current working directory (Shantanu, + PR 13161) + - Typeshed is now modular and distributed as separate PyPI + packages for everything except the standard library stubs. + Please see git log for full list of typeshed changes. + +------------------------------------------------------------------- Old: ---- mypy-0.961.tar.gz New: ---- mypy-0.971.tar.gz mypy-pr13259-walrus.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mypy.spec ++++++ --- /var/tmp/diff_new_pack.cQYmWQ/_old 2022-08-10 17:12:34.257593818 +0200 +++ /var/tmp/diff_new_pack.cQYmWQ/_new 2022-08-10 17:12:34.265593839 +0200 @@ -21,7 +21,7 @@ %define skip_python2 1 %define typed_ast_version 1.5.1 Name: mypy -Version: 0.961 +Version: 0.971 Release: 0 Summary: Optional static typing for Python License: MIT @@ -31,19 +31,23 @@ # License Source1: Apache-2.0. Only for the test suite, not packaged here. Source1: https://files.pythonhosted.org/packages/source/t/types-typed-ast/types-typed-ast-%{typed_ast_version}.tar.gz Source99: mypy-rpmlintrc +# PATCH-FIX-UPSTREAM mypy-pr13259-walrus.patch gh#python/mypy#13259 -- fix test failures with Python >= 3.10.6 +Patch0: mypy-pr13259-walrus.patch BuildRequires: %{python_module mypy_extensions >= 0.4.3} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module tomli >= 1.1.0} +BuildRequires: %{python_module tomli >= 1.1.0 if %python-base < 3.11} BuildRequires: %{python_module typed-ast >= 1.4.0 if %python-base < 3.8} BuildRequires: %{python_module typing_extensions >= 3.10} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-mypy_extensions >= 0.4.3 -Requires: python-tomli >= 1.1.0 Requires: python-typing_extensions >= 3.10 %if 0%{?python_version_nodots} < 38 Requires: python-typed-ast >= 1.4.0 %endif +%if 0%{?python_version_nodots} < 311 +Requires: python-tomli >= 1.1.0 +%endif Requires(post): update-alternatives Requires(postun):update-alternatives %if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3" @@ -55,6 +59,7 @@ %if %{with test} BuildRequires: %{python_module attrs >= 18} BuildRequires: %{python_module devel} +BuildRequires: %{python_module filelock >= 3.3} BuildRequires: %{python_module importlib-metadata >= 4.6.1} BuildRequires: %{python_module lxml >= 4} BuildRequires: %{python_module psutil >= 4} ++++++ mypy-0.961.tar.gz -> mypy-0.971.tar.gz ++++++ ++++ 23029 lines of diff (skipped) ++++++ mypy-pr13259-walrus.patch ++++++ >From 6f8899a49b9292c7dd7d338baf37fd0d6040883a Mon Sep 17 00:00:00 2001 From: hauntsaninja <hauntsani...@gmail.com> Date: Wed, 27 Jul 2022 20:59:22 -0700 Subject: [PATCH] Fix several tests on Python 3.11 As a result of https://github.com/python/cpython/pull/94948 we started to fail these tests on Python 3.11b5 --- test-data/unit/check-python38.test | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/test-data/unit/check-python38.test b/test-data/unit/check-python38.test index 6e21104c3d1..deded7a52f7 100644 --- a/test-data/unit/check-python38.test +++ b/test-data/unit/check-python38.test @@ -210,7 +210,7 @@ h(arg=0) # E: Unexpected keyword argument "arg" for "h" i(arg=0) # E: Unexpected keyword argument "arg" [case testWalrus] -# flags: --strict-optional +# flags: --strict-optional --python-version 3.8 from typing import NamedTuple, Optional, List from typing_extensions import Final @@ -385,6 +385,7 @@ reveal_type(z2) # E: Name "z2" is not defined # N: Revealed type is "Any" [builtins fixtures/isinstancelist.pyi] [case testWalrusConditionalTypeBinder] +# flags: --python-version 3.8 from typing import Union from typing_extensions import Literal @@ -405,7 +406,7 @@ else: [builtins fixtures/property.pyi] [case testWalrusConditionalTypeCheck] -# flags: --strict-optional +# flags: --strict-optional --python-version 3.8 from typing import Optional maybe_str: Optional[str] @@ -421,6 +422,7 @@ reveal_type(maybe_str) # N: Revealed type is "Union[builtins.str, None]" [builtins fixtures/bool.pyi] [case testWalrusConditionalTypeCheck2] +# flags: --python-version 3.8 from typing import Optional maybe_str: Optional[str] @@ -436,6 +438,7 @@ reveal_type(maybe_str) # N: Revealed type is "Union[builtins.str, None]" [builtins fixtures/bool.pyi] [case testWalrusPartialTypes] +# flags: --python-version 3.8 from typing import List def check_partial_list() -> None: @@ -452,7 +455,7 @@ def check_partial_list() -> None: [builtins fixtures/list.pyi] [case testWalrusAssignmentAndConditionScopeForLiteral] -# flags: --warn-unreachable +# flags: --warn-unreachable --python-version 3.8 if (x := 0): reveal_type(x) # E: Statement is unreachable @@ -462,7 +465,7 @@ else: reveal_type(x) # N: Revealed type is "builtins.int" [case testWalrusAssignmentAndConditionScopeForProperty] -# flags: --warn-unreachable +# flags: --warn-unreachable --python-version 3.8 from typing_extensions import Literal @@ -490,7 +493,7 @@ reveal_type(y) # N: Revealed type is "Literal[False]" [builtins fixtures/property.pyi] [case testWalrusAssignmentAndConditionScopeForFunction] -# flags: --warn-unreachable +# flags: --warn-unreachable --python-version 3.8 from typing_extensions import Literal @@ -523,6 +526,7 @@ reveal_type(z) # N: Revealed type is "Literal[False]" [builtins fixtures/tuple.pyi] [case testWalrusExpr] +# flags: --python-version 3.8 def func() -> None: foo = Foo() if x := foo.x: @@ -533,6 +537,7 @@ class Foo: self.x = 123 [case testWalrusTypeGuard] +# flags: --python-version 3.8 from typing_extensions import TypeGuard def is_float(a: object) -> TypeGuard[float]: pass def main(a: object) -> None: @@ -542,6 +547,7 @@ def main(a: object) -> None: [builtins fixtures/tuple.pyi] [case testWalrusRedefined] +# flags: --python-version 3.8 def foo() -> None: x = 0 [x := x + y for y in [1, 2, 3]]