From bfba238f1d038531bfff32eaa5bf76c08801b0bed20d72ed02bafe5082ca0d50 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 2 Jan 2024 17:27:14 +0000 Subject: [PATCH] - update to 1.8.0: * https://mypy-lang.blogspot.com/2023/12/mypy-18-released.html * https://mypy-lang.blogspot.com/2023/11/mypy-17-released.html * https://mypy-lang.blogspot.com/2023/10/mypy-16-released.html - fix dependencies - Support better __post_init__ method signature for dataclasses (Nikita Sobolev, PR 15503) - Don't explicitly assign NULL values in setup functions (Logan Hunt, PR 15379) - Fix crash on non-str docstring (Ali Hamdan, PR 15623) - Remove confusing instance variable example in cheat sheet (Adel Atallah, PR 15441) - Check for abstract class objects in tuples (Nikita Sobolev, PR 15366) - Fix frozen behavior for base classes with direct metaclasses (Wesley Collin Wright, PR 14878) - Fixes to float to int conversion (Jukka Lehtosalo, PR 14936) - Faster classmethod calls via cls (Jukka Lehtosalo, PR 14789) - Fix crash on ParamSpec in incremental mode (Ivan Levkivskyi, PR 14885) - Improve documentation of top level mypy: disable-error-code comment (Nikita Sobolev, PR 14810) - Add suggestions for pandas-stubs and lxml-stubs (Shantanu, PR 14737) - Honor NoReturn as __setitem__ return type to mark unreachable code (sterliakov, PR 12572) - Sadly, six is still required for tests, re-add to BuildRequires. The full release notes can be found here: - Fix types of inherited attributes in generic dataclasses (Jukka Lehtosalo, PR 12656) - add missing g++ compiler for tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=6 --- mypy-1.5.1.tar.gz | 3 --- mypy-1.8.0.tar.gz | 3 +++ python-mypy.changes | 43 ++++++++++++++++++++++++++----------------- python-mypy.spec | 9 ++++----- 4 files changed, 33 insertions(+), 25 deletions(-) delete mode 100644 mypy-1.5.1.tar.gz create mode 100644 mypy-1.8.0.tar.gz diff --git a/mypy-1.5.1.tar.gz b/mypy-1.5.1.tar.gz deleted file mode 100644 index 714b2e8..0000000 --- a/mypy-1.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b031b9601f1060bf1281feab89697324726ba0c0bae9d7cd7ab4b690940f0b92 -size 2891640 diff --git a/mypy-1.8.0.tar.gz b/mypy-1.8.0.tar.gz new file mode 100644 index 0000000..95b34b1 --- /dev/null +++ b/mypy-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ff8b244d7085a0b425b56d327b480c3b29cafbd2eff27316a004f9a7391ae07 +size 2990299 diff --git a/python-mypy.changes b/python-mypy.changes index 7bb28fb..88d69fb 100644 --- a/python-mypy.changes +++ b/python-mypy.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Jan 2 17:24:56 UTC 2024 - Dirk Müller + +- update to 1.8.0: + * https://mypy-lang.blogspot.com/2023/12/mypy-18-released.html + * https://mypy-lang.blogspot.com/2023/11/mypy-17-released.html + * https://mypy-lang.blogspot.com/2023/10/mypy-16-released.html +- fix dependencies + ------------------------------------------------------------------- Wed Aug 30 18:31:19 UTC 2023 - Martin Schreiner @@ -39,7 +48,7 @@ Sun Aug 13 06:30:29 UTC 2023 - Sebastian Wagner - Fix strict optional handling in dataclasses (Ivan Levkivskyi, PR 15571) - Support optional types for custom dataclass descriptors (Marc Mueller, PR 15628) - Add __slots__ attribute to dataclasses (Nikita Sobolev, PR 15649) - - Support better __post_init__ method signature for dataclasses (Nikita Sobolev, PR 15503) + - Support better __post_init__ method signature for dataclasses (Nikita Sobolev, PR 15503) - Mypyc Improvements - Support unsigned 8-bit native integer type: mypy_extensions.u8 (Jukka Lehtosalo, PR 15564) - Support signed 16-bit native integer type: mypy_extensions.i16 (Jukka Lehtosalo, PR 15464) @@ -47,16 +56,16 @@ Sun Aug 13 06:30:29 UTC 2023 - Sebastian Wagner - Document more unsupported features and update supported features (Richard Si, PR 15524) - Fix final NamedTuple classes (Richard Si, PR 15513) - Use C99 compound literals for undefined tuple values (Jukka Lehtosalo, PR 15453) - - Don't explicitly assign NULL values in setup functions (Logan Hunt, PR 15379) + - Don't explicitly assign NULL values in setup functions (Logan Hunt, PR 15379) - Stubgen Improvements - Teach stubgen to work with complex and unary expressions (Nikita Sobolev, PR 15661) - Support ParamSpec and TypeVarTuple (Ali Hamdan, PR 15626) - - Fix crash on non-str docstring (Ali Hamdan, PR 15623) + - Fix crash on non-str docstring (Ali Hamdan, PR 15623) - Documentation Updates - Add documentation for additional error codes (Ivan Levkivskyi, PR 15539) - Improve documentation of type narrowing (Ilya Priven, PR 15652) - Small improvements to protocol documentation (Shantanu, PR 15460) - - Remove confusing instance variable example in cheat sheet (Adel Atallah, PR 15441) + - Remove confusing instance variable example in cheat sheet (Adel Atallah, PR 15441) - Other Notable Fixes and Improvements - Constant fold additional unary and binary expressions (Richard Si, PR 15202) - Exclude the same special attributes from Protocol as CPython (Kyle Benesch, PR 15490) @@ -74,7 +83,7 @@ Sun Aug 13 06:30:29 UTC 2023 - Sebastian Wagner - Remove parameters that no longer exist from NamedTuple._make() (Alex Waygood, PR 15578) - Allow using typing.Self in __new__ with an explicit @staticmethod decorator (Erik Kemperman, PR 15353) - Fix self types in subclass methods without Self annotation (Ivan Levkivskyi, PR 15541) - - Check for abstract class objects in tuples (Nikita Sobolev, PR 15366) + - Check for abstract class objects in tuples (Nikita Sobolev, PR 15366) - Typeshed Updates - 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. @@ -150,7 +159,7 @@ Sun May 7 09:54:51 UTC 2023 - Sebastian Wagner - Support implicit default for "init" parameter in field specifiers (Wesley Collin Wright and Jukka Lehtosalo, PR 15010) - Support descriptors in dataclass transform (Jukka Lehtosalo, PR 15006) - Fix frozen_default in incremental mode (Wesley Collin Wright) - - Fix frozen behavior for base classes with direct metaclasses (Wesley Collin Wright, PR 14878) + - Fix frozen behavior for base classes with direct metaclasses (Wesley Collin Wright, PR 14878) - Mypyc: Native Floats - Mypyc now uses a native, unboxed representation for values of type float. Previously these were heap-allocated Python objects. Native floats are faster and use less memory. Code that uses floating-point operations heavily can be several times faster when using native floats. - Various float operations and math functions also now have optimized implementations. Refer to the documentation for a full list. @@ -162,7 +171,7 @@ Sun May 7 09:54:51 UTC 2023 - Sebastian Wagner - Related changes: - Use a native unboxed representation for floats (Jukka Lehtosalo, PR 14880) - Document native floats and integers (Jukka Lehtosalo, PR 14927) - - Fixes to float to int conversion (Jukka Lehtosalo, PR 14936) + - Fixes to float to int conversion (Jukka Lehtosalo, PR 14936) - Mypyc: Native Integers - Mypyc now supports signed 32-bit and 64-bit integer types in addition to the arbitrary-precision int type. You can use the types mypy_extensions.i32 and mypy_extensions.i64 to speed up code that uses integer operations heavily. - Refer to the documentation for more information. This feature was contributed by Jukka Lehtosalo. @@ -170,20 +179,20 @@ Sun May 7 09:54:51 UTC 2023 - Sebastian Wagner - Support iterating over a TypedDict (Richard Si, PR 14747) - Faster coercions between different tuple types (Jukka Lehtosalo, PR 14899) - Faster calls via type aliases (Jukka Lehtosalo, PR 14784) - - Faster classmethod calls via cls (Jukka Lehtosalo, PR 14789) + - Faster classmethod calls via cls (Jukka Lehtosalo, PR 14789) - Fixes to Crashes - Fix crash on class-level import in protocol definition (Ivan Levkivskyi, PR 14926) - Fix crash on single item union of alias (Ivan Levkivskyi, PR 14876) - - Fix crash on ParamSpec in incremental mode (Ivan Levkivskyi, PR 14885) + - Fix crash on ParamSpec in incremental mode (Ivan Levkivskyi, PR 14885) - Documentation Updates - Update adopting --strict documentation for 1.0 (Shantanu, PR 14865) - Some minor documentation tweaks (Jukka Lehtosalo, PR 14847) - - Improve documentation of top level mypy: disable-error-code comment (Nikita Sobolev, PR 14810) + - Improve documentation of top level mypy: disable-error-code comment (Nikita Sobolev, PR 14810) - Error Reporting Improvements - Add error code to typing_extensions suggestion (Shantanu, PR 14881) - Add a separate error code for top-level await (Nikita Sobolev, PR 14801) - Don’t suggest two obsolete stub packages (Jelle Zijlstra, PR 14842) - - Add suggestions for pandas-stubs and lxml-stubs (Shantanu, PR 14737) + - Add suggestions for pandas-stubs and lxml-stubs (Shantanu, PR 14737) - Other Fixes and Improvements - Multiple inheritance considers callable objects as subtypes of functions (Christoph Tyralla, PR 14855) - stubtest: Respect @final runtime decorator and enforce it in stubs (Nikita Sobolev, PR 14922) @@ -200,7 +209,7 @@ Sun May 7 09:54:51 UTC 2023 - Sebastian Wagner - Fix unpack with overloaded __iter__ method (Nikita Sobolev, PR 14817) - Reduce size of JSON data in mypy cache (dosisod, PR 14808) - Improve “used before definition” checks when a local definition has the same name as a global definition (Stas Ilinskiy, PR 14517) - - Honor NoReturn as __setitem__ return type to mark unreachable code (sterliakov, PR 12572) + - Honor NoReturn as __setitem__ return type to mark unreachable code (sterliakov, PR 12572) ------------------------------------------------------------------- Wed Apr 12 12:37:48 UTC 2023 - Matej Cepl @@ -213,11 +222,11 @@ Wed Apr 12 12:37:48 UTC 2023 - Matej Cepl - Typeshed updates - Plenty of fixes - Removed upstreamed patch testI64Cast-fix.patch - + ------------------------------------------------------------------- Tue Apr 11 07:15:55 UTC 2023 - Steve Kowalik -- Sadly, six is still required for tests, re-add to BuildRequires. +- Sadly, six is still required for tests, re-add to BuildRequires. ------------------------------------------------------------------- Tue Feb 14 06:02:49 UTC 2023 - Matej Cepl @@ -292,7 +301,7 @@ Tue Sep 27 16:01:57 UTC 2022 - Daniel Garcia * Fix bad C generated for multiple assignment (Jukka Lehtosalo, PR 13147) * Update, simplify check version test (Shantanu, PR 13125) - The full release notes can be found here: + The full release notes can be found here: https://mypy-lang.blogspot.com/2022/09/mypy-0981-released.html ------------------------------------------------------------------- @@ -487,7 +496,7 @@ Tue Jun 21 09:00:36 UTC 2022 - Sebastian Wagner - Avoid conflicts between type variables defined in different classes (Jukka Lehtosalo, PR 12590) - Fix __slots__ and __deletable__ in incremental mode (Jukka Lehtosalo, PR 12645) - Fix issue with ParamSpec serialization (Jukka Lehtosalo, PR 12654) - - Fix types of inherited attributes in generic dataclasses (Jukka Lehtosalo, PR 12656) + - Fix types of inherited attributes in generic dataclasses (Jukka Lehtosalo, PR 12656) ------------------------------------------------------------------- Mon Mar 28 15:33:14 UTC 2022 - Matej Cepl @@ -651,7 +660,7 @@ Fri Dec 31 19:58:41 UTC 2021 - Ben Greiner ------------------------------------------------------------------- Fri Dec 31 17:17:41 UTC 2021 - Sebastian Wagner -- add missing g++ compiler for tests +- add missing g++ compiler for tests ------------------------------------------------------------------- Fri Dec 31 16:40:37 UTC 2021 - Sebastian Wagner diff --git a/python-mypy.spec b/python-mypy.spec index 571611b..d274c24 100644 --- a/python-mypy.spec +++ b/python-mypy.spec @@ -1,7 +1,7 @@ # # spec file for package python-mypy # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,11 @@ %{?sle15_python_module_pythons} %bcond_without test -%define skip_python2 1 %define typed_ast_version 1.5.8.7 %define types_psutil_version 5.9.5.16 %define types_setuptools_version 68.1.0.0 Name: python-mypy -Version: 1.5.1 +Version: 1.8.0 Release: 0 Summary: Optional static typing for Python License: MIT @@ -46,8 +45,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-mypy_extensions >= 0.4.3 Requires: python-typing_extensions >= 3.10 -Requires: (python-tomli >= 1.1.0 if python3-base < 3.11) -Requires: (python-typed-ast >= 1.4.0 if python3-base < 3.8) +Requires: (python-tomli >= 1.1.0 if python-base < 3.11) +Requires: (python-typed-ast >= 1.4.0 if python-base < 3.8) Requires(post): update-alternatives Requires(postun):update-alternatives %if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"