From ac6233e7d92681578b9d12bea1780fe76255f18a49abc98f8ca6caa78771cb84 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 25 Jan 2025 20:45:00 +0000 Subject: [PATCH] Accepting request 1240190 from home:ecsos:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to 1.14.1 * Mypyc Improvements - Document optimized bytes operations and additional str operations (Jukka Lehtosalo, PR 18242) - Add primitives and specialization for ord() (Jukka Lehtosalo, PR 18240) - Optimize str.encode with specializations for common used encodings (Valentin Stanciu, PR 18232) - Fix fall back to generic operation for staticmethod and classmethod (Advait Dixit, PR 18228) - Support unicode surrogates in string literals (Jukka Lehtosalo, PR 18209) - Fix index variable in for loop with builtins.enumerate (Advait Dixit, PR 18202) - Fix check for enum classes (Advait Dixit, PR 18178) - Fix loading type from imported modules (Advait Dixit, PR 18158) - Fix initializers of final attributes in class body (Jared Hance, PR 18031) - Fix name generation for modules with similar full names (aatle, PR 18001) - Fix relative imports in __init__.py (Shantanu, PR 17979) - Optimize dunder methods (jairov4, PR 17934) - Replace deprecated _PyDict_GetItemStringWithError (Marc Mueller, PR 17930) - Fix wheel build for cp313-win (Marc Mueller, PR 17941) - Use public PyGen_GetCode instead of vendored implementation (Marc Mueller, PR 17931) - Optimize calls to final classes (jairov4, PR 17886) - Support ellipsis (...) expressions in class bodies (Newbyte, PR 17923) - Sync pythoncapi_compat.h (Marc Mueller, PR 17929) - Add runtests.py mypyc-fast for running fast mypyc tests (Jukka Lehtosalo, PR 17906) * Stubgen Improvements - Do not include mypy generated symbols (Ali Hamdan, PR 18137) - Fix FunctionContext.fullname for nested classes (Chad Dombrova, PR 17963) - Add flagfile support (Ruslan Sayfutdinov, PR 18061) - Add support for PEP 695 and PEP 696 syntax (Ali Hamdan, PR 18054) * Stubtest Improvements - Allow the use of --show-traceback and --pdb with stubtest (Stephen Morton, PR 18037) - Verify __all__ exists in stub (Sebastian Rittau, PR 18005) - Stop telling people to use double underscores (Jelle Zijlstra, PR 17897) * Documentation Updates - Update config file documentation (sobolevn, PR 18103) - Improve contributor documentation for Windows (ag-tafe, PR 18097) - Correct note about --disallow-any-generics flag in documentation (Abel Sen, PR 18055) - Further caution against --follow-imports=skip (Shantanu, PR 18048) - Fix the edit page buttton link in documentation (Kanishk Pachauri, PR 17933) * Other Notables Fixes and Improvements - Show Protocol __call__ for arguments with incompatible types (MechanicalConstruct, PR 18214) - Make join and meet symmetric with strict_optional (MechanicalConstruct, PR 18227) - Preserve block unreachablility when checking function definitions with constrained TypeVars (Brian Schubert, PR 18217) - Do not include non-init fields in the synthesized __replace__ method for dataclasses (Victorien, PR 18221) - Disallow TypeVar constraints parameterized by type variables (Brian Schubert, PR 18186) - Always complain about invalid varargs and varkwargs (Shantanu, PR 18207) - Set default strict_optional state to True (Shantanu, PR 18198) - Preserve type variable default None in type alias (Sukhorosov Aleksey, PR 18197) - Add checks for invalid usage of continue/break/return in except* block (coldwolverine, PR 18132) - Do not consider bare TypeVar not overlapping with None for reachability analysis (Stanislav Terliakov, PR 18138) - Special case types.DynamicClassAttribute as property-like (Stephen Morton, PR 18150) - Disallow bare ParamSpec in type aliases (Brian Schubert, PR 18174) - Move long_description metadata to pyproject.toml (Marc Mueller, PR 18172) - Support ==-based narrowing of Optional (Christoph Tyralla, PR 18163) - Allow TypedDict assignment of Required item to NotRequired ReadOnly item (Brian Schubert, PR 18164) - Allow nesting of Annotated with TypedDict special forms inside TypedDicts (Brian Schubert, PR 18165) - Infer generic type arguments for slice expressions (Brian Schubert, PR 18160) - Fix checking of match sequence pattern against bounded type variables (Brian Schubert, PR 18091) - Fix incorrect truthyness for Enum types and literals (David Salvisberg, PR 17337) - Move static project metadata to pyproject.toml (Marc Mueller, PR 18146) - Fallback to stdlib json if integer exceeds 64-bit range (q0w, PR 18148) - Fix 'or' pattern structural matching exhaustiveness (yihong, PR 18119) - Fix type inference of positional parameter in class pattern involving builtin subtype (Brian Schubert, PR 18141) - Fix [override] error with no line number when argument node has no line number (Brian Schubert, PR 18122) - Fix some dmypy crashes (Ivan Levkivskyi, PR 18098) - Fix subtyping between instance type and overloaded (Shantanu, PR 18102) - Clean up new_semantic_analyzer config (Shantanu, PR 18071) - Issue warning for enum with no members in stub (Shantanu, PR 18068) - Fix enum attributes are not members (Terence Honles, PR 17207) - Fix crash when checking slice expression with step 0 in tuple index (Brian Schubert, PR 18063) - Allow union-with-callable attributes to be overridden by methods (Brian Schubert, PR 18018) - Emit [mutable-override] for covariant override of attribute with method (Brian Schubert, PR 18058) - Support ParamSpec mapping with functools.partial (Stanislav Terliakov, PR 17355) - Fix approved stub ignore, remove normpath (Shantanu, PR 18045) - Make disallow-any-unimported flag invertible (Séamus Ó Ceanainn, PR 18030) - Filter to possible package paths before trying to resolve a module (falsedrow, PR 18038) - Fix overlap check for ParamSpec types (Jukka Lehtosalo, PR 18040) - Do not prioritize ParamSpec signatures during overload resolution (Stanislav Terliakov, PR 18033) - Fix ternary union for literals (Ivan Levkivskyi, PR 18023) - Fix compatibility checks for conditional function definitions using decorators (Brian Schubert, PR 18020) - TypeGuard should be bool not Any when matching TypeVar (Evgeniy Slobodkin, PR 17145) - Fix convert-cache tool (Shantanu, PR 17974) - Fix generator comprehension with mypyc (Shantanu, PR 17969) - Fix crash issue when using shadowfile with pretty (Max Chang, PR 17894) - Fix multiple nested classes with new generics syntax (Max Chang, PR 17820) - Better error for mypy -p package without py.typed (Joe Gordon, PR 17908) - Emit error for raise NotImplemented (Brian Schubert, PR 17890) - Add is_lvalue attribute to AttributeContext (Brian Schubert, PR 17881) - Changes from 1.13 - Significantly speed up file handling error paths (Shantanu, PR 17920) - Use fast path in modulefinder more often (Shantanu, PR 17950) - Let mypyc optimise os.path.join (Shantanu, PR 17949) - Make is_sub_path faster (Shantanu, PR 17962) - Speed up stubs suggestions (Shantanu, PR 17965) - Use sha1 for hashing (Shantanu, PR 17953) - Use orjson instead of json, when available (Shantanu, PR 17955) - Add faster-cache extra, test in CI (Shantanu, PR 17978) OBS-URL: https://build.opensuse.org/request/show/1240190 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=28 --- mypy-1.12.0.tar.gz | 3 -- mypy-1.14.1.tar.gz | 3 ++ python-mypy.changes | 98 +++++++++++++++++++++++++++++++++++++++++++++ python-mypy.spec | 6 +-- 4 files changed, 104 insertions(+), 6 deletions(-) delete mode 100644 mypy-1.12.0.tar.gz create mode 100644 mypy-1.14.1.tar.gz diff --git a/mypy-1.12.0.tar.gz b/mypy-1.12.0.tar.gz deleted file mode 100644 index ecf9022..0000000 --- a/mypy-1.12.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:65a22d87e757ccd95cbbf6f7e181e6caa87128255eb2b6be901bb71b26d8a99d -size 3149879 diff --git a/mypy-1.14.1.tar.gz b/mypy-1.14.1.tar.gz new file mode 100644 index 0000000..f707fff --- /dev/null +++ b/mypy-1.14.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ec88144fe9b510e8475ec2f5f251992690fcf89ccb4500b214b4226abcd32d6 +size 3216051 diff --git a/python-mypy.changes b/python-mypy.changes index f7c527b..06c7081 100644 --- a/python-mypy.changes +++ b/python-mypy.changes @@ -1,3 +1,101 @@ +------------------------------------------------------------------- +Fri Jan 24 15:13:25 UTC 2025 - ecsos + +- Update to 1.14.1 + * Mypyc Improvements + - Document optimized bytes operations and additional str operations (Jukka Lehtosalo, PR 18242) + - Add primitives and specialization for ord() (Jukka Lehtosalo, PR 18240) + - Optimize str.encode with specializations for common used encodings (Valentin Stanciu, PR 18232) + - Fix fall back to generic operation for staticmethod and classmethod (Advait Dixit, PR 18228) + - Support unicode surrogates in string literals (Jukka Lehtosalo, PR 18209) + - Fix index variable in for loop with builtins.enumerate (Advait Dixit, PR 18202) + - Fix check for enum classes (Advait Dixit, PR 18178) + - Fix loading type from imported modules (Advait Dixit, PR 18158) + - Fix initializers of final attributes in class body (Jared Hance, PR 18031) + - Fix name generation for modules with similar full names (aatle, PR 18001) + - Fix relative imports in __init__.py (Shantanu, PR 17979) + - Optimize dunder methods (jairov4, PR 17934) + - Replace deprecated _PyDict_GetItemStringWithError (Marc Mueller, PR 17930) + - Fix wheel build for cp313-win (Marc Mueller, PR 17941) + - Use public PyGen_GetCode instead of vendored implementation (Marc Mueller, PR 17931) + - Optimize calls to final classes (jairov4, PR 17886) + - Support ellipsis (...) expressions in class bodies (Newbyte, PR 17923) + - Sync pythoncapi_compat.h (Marc Mueller, PR 17929) + - Add runtests.py mypyc-fast for running fast mypyc tests (Jukka Lehtosalo, PR 17906) + * Stubgen Improvements + - Do not include mypy generated symbols (Ali Hamdan, PR 18137) + - Fix FunctionContext.fullname for nested classes (Chad Dombrova, PR 17963) + - Add flagfile support (Ruslan Sayfutdinov, PR 18061) + - Add support for PEP 695 and PEP 696 syntax (Ali Hamdan, PR 18054) + * Stubtest Improvements + - Allow the use of --show-traceback and --pdb with stubtest (Stephen Morton, PR 18037) + - Verify __all__ exists in stub (Sebastian Rittau, PR 18005) + - Stop telling people to use double underscores (Jelle Zijlstra, PR 17897) + * Documentation Updates + - Update config file documentation (sobolevn, PR 18103) + - Improve contributor documentation for Windows (ag-tafe, PR 18097) + - Correct note about --disallow-any-generics flag in documentation (Abel Sen, PR 18055) + - Further caution against --follow-imports=skip (Shantanu, PR 18048) + - Fix the edit page buttton link in documentation (Kanishk Pachauri, PR 17933) + * Other Notables Fixes and Improvements + - Show Protocol __call__ for arguments with incompatible types (MechanicalConstruct, PR 18214) + - Make join and meet symmetric with strict_optional (MechanicalConstruct, PR 18227) + - Preserve block unreachablility when checking function definitions with constrained TypeVars (Brian Schubert, PR 18217) + - Do not include non-init fields in the synthesized __replace__ method for dataclasses (Victorien, PR 18221) + - Disallow TypeVar constraints parameterized by type variables (Brian Schubert, PR 18186) + - Always complain about invalid varargs and varkwargs (Shantanu, PR 18207) + - Set default strict_optional state to True (Shantanu, PR 18198) + - Preserve type variable default None in type alias (Sukhorosov Aleksey, PR 18197) + - Add checks for invalid usage of continue/break/return in except* block (coldwolverine, PR 18132) + - Do not consider bare TypeVar not overlapping with None for reachability analysis (Stanislav Terliakov, PR 18138) + - Special case types.DynamicClassAttribute as property-like (Stephen Morton, PR 18150) + - Disallow bare ParamSpec in type aliases (Brian Schubert, PR 18174) + - Move long_description metadata to pyproject.toml (Marc Mueller, PR 18172) + - Support ==-based narrowing of Optional (Christoph Tyralla, PR 18163) + - Allow TypedDict assignment of Required item to NotRequired ReadOnly item (Brian Schubert, PR 18164) + - Allow nesting of Annotated with TypedDict special forms inside TypedDicts (Brian Schubert, PR 18165) + - Infer generic type arguments for slice expressions (Brian Schubert, PR 18160) + - Fix checking of match sequence pattern against bounded type variables (Brian Schubert, PR 18091) + - Fix incorrect truthyness for Enum types and literals (David Salvisberg, PR 17337) + - Move static project metadata to pyproject.toml (Marc Mueller, PR 18146) + - Fallback to stdlib json if integer exceeds 64-bit range (q0w, PR 18148) + - Fix 'or' pattern structural matching exhaustiveness (yihong, PR 18119) + - Fix type inference of positional parameter in class pattern involving builtin subtype (Brian Schubert, PR 18141) + - Fix [override] error with no line number when argument node has no line number (Brian Schubert, PR 18122) + - Fix some dmypy crashes (Ivan Levkivskyi, PR 18098) + - Fix subtyping between instance type and overloaded (Shantanu, PR 18102) + - Clean up new_semantic_analyzer config (Shantanu, PR 18071) + - Issue warning for enum with no members in stub (Shantanu, PR 18068) + - Fix enum attributes are not members (Terence Honles, PR 17207) + - Fix crash when checking slice expression with step 0 in tuple index (Brian Schubert, PR 18063) + - Allow union-with-callable attributes to be overridden by methods (Brian Schubert, PR 18018) + - Emit [mutable-override] for covariant override of attribute with method (Brian Schubert, PR 18058) + - Support ParamSpec mapping with functools.partial (Stanislav Terliakov, PR 17355) + - Fix approved stub ignore, remove normpath (Shantanu, PR 18045) + - Make disallow-any-unimported flag invertible (Séamus Ó Ceanainn, PR 18030) + - Filter to possible package paths before trying to resolve a module (falsedrow, PR 18038) + - Fix overlap check for ParamSpec types (Jukka Lehtosalo, PR 18040) + - Do not prioritize ParamSpec signatures during overload resolution (Stanislav Terliakov, PR 18033) + - Fix ternary union for literals (Ivan Levkivskyi, PR 18023) + - Fix compatibility checks for conditional function definitions using decorators (Brian Schubert, PR 18020) + - TypeGuard should be bool not Any when matching TypeVar (Evgeniy Slobodkin, PR 17145) + - Fix convert-cache tool (Shantanu, PR 17974) + - Fix generator comprehension with mypyc (Shantanu, PR 17969) + - Fix crash issue when using shadowfile with pretty (Max Chang, PR 17894) + - Fix multiple nested classes with new generics syntax (Max Chang, PR 17820) + - Better error for mypy -p package without py.typed (Joe Gordon, PR 17908) + - Emit error for raise NotImplemented (Brian Schubert, PR 17890) + - Add is_lvalue attribute to AttributeContext (Brian Schubert, PR 17881) + - Changes from 1.13 + - Significantly speed up file handling error paths (Shantanu, PR 17920) + - Use fast path in modulefinder more often (Shantanu, PR 17950) + - Let mypyc optimise os.path.join (Shantanu, PR 17949) + - Make is_sub_path faster (Shantanu, PR 17962) + - Speed up stubs suggestions (Shantanu, PR 17965) + - Use sha1 for hashing (Shantanu, PR 17953) + - Use orjson instead of json, when available (Shantanu, PR 17955) + - Add faster-cache extra, test in CI (Shantanu, PR 17978) + ------------------------------------------------------------------- Mon Oct 14 12:48:06 UTC 2024 - Matej Cepl diff --git a/python-mypy.spec b/python-mypy.spec index c0e56b2..bdd5970 100644 --- a/python-mypy.spec +++ b/python-mypy.spec @@ -1,7 +1,7 @@ # # spec file for package python-mypy # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ %define types_psutil_version 6.0.0.20241011 %define types_setuptools_version 75.1.0.20241014 Name: python-mypy -Version: 1.12.0 +Version: 1.14.1 Release: 0 Summary: Optional static typing for Python License: MIT @@ -47,7 +47,7 @@ Requires: python-mypy_extensions >= 0.4.3 Requires: python-typing_extensions >= 3.10 Requires: (python-tomli >= 1.1.0 if python-base < 3.11) Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives %if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3" Provides: mypy = %{version} Obsoletes: mypy < %{version}