commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mypy for openSUSE:Factory
checked in at 2025-12-02 13:18:16
Comparing /work/SRC/openSUSE:Factory/python-mypy (Old)
and /work/SRC/openSUSE:Factory/.python-mypy.new.14147 (New)
Package is "python-mypy"
Tue Dec 2 13:18:16 2025 rev:20 rq:1320169 version:1.18.2
Changes:
--- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2025-10-02
19:20:07.334262680 +0200
+++ /work/SRC/openSUSE:Factory/.python-mypy.new.14147/python-mypy.changes
2025-12-02 13:18:26.318526456 +0100
@@ -1,0 +2,5 @@
+Tue Nov 25 12:55:30 UTC 2025 - Markéta Machová
+
+- Lower-bound python version on mypy self check because of pytest 9
+
+---
Other differences:
--
++ python-mypy.spec ++
--- /var/tmp/diff_new_pack.aAC3UD/_old 2025-12-02 13:18:27.358570122 +0100
+++ /var/tmp/diff_new_pack.aAC3UD/_new 2025-12-02 13:18:27.362570290 +0100
@@ -136,7 +136,8 @@
%if 0%{?suse_version} > 1600
%{python_expand # self-check with manually provided stubs for typed_ast
export PYTHONPATH=%{buildroot}%{$python_sitelib}:./mystubs
-$python -m mypy --config-file mypy_self_check.ini -p mypy
+# hardcode minimum 3.10 here because pytest 9 dropped 3.9 support and mypy
itself has some compatibility code for <3.11
+$python -m mypy --config-file mypy_self_check.ini --python-version=3.10 -p mypy
}
%endif
unset PYTHONPATH
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mypy for openSUSE:Factory
checked in at 2025-09-14 18:49:29
Comparing /work/SRC/openSUSE:Factory/python-mypy (Old)
and /work/SRC/openSUSE:Factory/.python-mypy.new.1977 (New)
Package is "python-mypy"
Sun Sep 14 18:49:29 2025 rev:18 rq:1304339 version:1.18.1
Changes:
--- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2025-08-13
16:25:33.492112799 +0200
+++ /work/SRC/openSUSE:Factory/.python-mypy.new.1977/python-mypy.changes
2025-09-14 18:50:11.370131821 +0200
@@ -1,0 +2,63 @@
+Fri Sep 12 08:57:49 UTC 2025 - Matej Cepl
+
+- Update to 1.18.1:
+ (full release notes on
+ https://mypy-lang.blogspot.com/2025/09/mypy-1181-released.html,
+ these are just headlines)
+ - Mypy Performance Improvements
+Mypy 1.18.1 includes numerous performance improvements,
+resulting in about 40% speedup compared to 1.17 when type
+checking mypy itself. In extreme cases, the improvement
+can be 10x or higher. The list below is an overview of
+the various mypy optimizations. Many mypyc improvements
+(discussed in a separate section below) also improve
+performance.
+ - Fixed‑Format Cache (Experimental)
+Mypy now supports a new cache format used for faster
+incremental builds. It makes incremental builds up to
+twice as fast. The feature is experimental and currently
+only supported when using a compiled version of mypy.
+Use --fixed-format-cache to enable the new format, or
+fixed_format_cache = True in a configuration file.
+ - Flexible Variable Definitions: Update
+Mypy 1.16.0 introduced --allow-redefinition-new, which allows
+redefining variables with different types, and inferring
+union types for variables from multiple assignments. The
+feature is now documented in the --help output, but the
+feature is still experimental.
+ - Inferred Type for Bare ClassVar
+A ClassVar without an explicit type annotation now causes the
+type of the variable to be inferred from the initializer:
+from typing import ClassVar
+
+class Item:
+# Type of 'next_id' is now 'int' (it was 'Any')
+next_id: ClassVar = 1
+
+...
+ - Disjoint Base Classes (@disjoint_base, PEP 800)
+Mypy now understands disjoint bases (PEP 800): it recognizes
+the @disjoint_base decorator, and rejects class definitions
+that combine mutually incompatible base classes, and takes
+advantage of the fact that such classes cannot exist in
+reachability and narrowing logic.
+ - Miscellaneous improvements
+ - Experimental Free-threading Support for Mypyc
+ - Mypyc: Support __new__
+ - Mypyc: Faster Generators and Async Functions
+ - Miscellaneous Mypyc Improvements
+ - Stubtest Improvements
+ - Documentation Updates
+ - Other Fixes and Improvements
+ - Typeshed Updates
+
+---
+Tue Sep 9 07:51:36 UTC 2025 - Dirk Müller
+
+- update to 1.17.1:
+ * Prevent a crash when InitVar is redefined with a method in a
+subclass
+ * Fix "ignored exception in hasattr" in dmypy
+ * Retain None as constraints bottom if no bottoms were provided
+
+---
Old:
mypy-1.17.0.tar.gz
New:
mypy-1.18.1.tar.gz
Other differences:
--
++ python-mypy.spec ++
--- /var/tmp/diff_new_pack.M7SWdi/_old 2025-09-14 18:50:12.010158641 +0200
+++ /var/tmp/diff_new_pack.M7SWdi/_new 2025-09-14 18:50:12.010158641 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-mypy
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-mypy
-Version:1.17.0
+Version:1.18.1
Release:0
Summary:Optional static typing for Python
License:MIT
++ mypy-1.17.0.tar.gz -> mypy-1.18.1.tar.gz ++
54762 lines of diff (skipped)
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mypy for openSUSE:Factory
checked in at 2025-08-13 16:23:08
Comparing /work/SRC/openSUSE:Factory/python-mypy (Old)
and /work/SRC/openSUSE:Factory/.python-mypy.new.1085 (New)
Package is "python-mypy"
Wed Aug 13 16:23:08 2025 rev:17 rq:1299074 version:1.17.0
Changes:
--- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2025-07-30
11:45:43.407583422 +0200
+++ /work/SRC/openSUSE:Factory/.python-mypy.new.1085/python-mypy.changes
2025-08-13 16:25:33.492112799 +0200
@@ -1,0 +2,5 @@
+Tue Aug 12 12:59:14 UTC 2025 - Markéta Machová
+
+- Fix the libalternatives condition
+
+---
Other differences:
--
++ python-mypy.spec ++
--- /var/tmp/diff_new_pack.6s4MYH/_old 2025-08-13 16:25:45.964634178 +0200
+++ /var/tmp/diff_new_pack.6s4MYH/_new 2025-08-13 16:25:45.984635014 +0200
@@ -19,7 +19,11 @@
%define types_psutil_version 7.0.0.20250401
%define types_setuptools_version 78.1.0.20250329
%bcond_without test
+%if 0%{?suse_version} > 1500
%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
%{?sle15_python_module_pythons}
Name: python-mypy
Version:1.17.0
@@ -121,9 +125,7 @@
%python_clone -a %{buildroot}%{_bindir}/mypyc
%python_clone -a %{buildroot}%{_bindir}/stubgen
%python_clone -a %{buildroot}%{_bindir}/stubtest
-%if %{with libalternatives}
%python_group_libalternatives mypy dmypy mypyc stubgen stubtest
-%endif
# solve "W: python-doc-in-package" in 3.9, 3.10 and 3.11, but not in 3.8 (thus
-f to ignore the error)
%python_expand rm -rf %{buildroot}%{$python_sitelib}/mypyc/doc
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -153,17 +155,14 @@
%pytest -n auto -k "not (testallexcept ${donttest})"
%endif
-%if %{with libalternatives}
%pre
%python_libalternatives_reset_alternative mypy
-%else
%post
%python_install_alternative mypy dmypy mypyc stubgen stubtest
%postun
%python_uninstall_alternative mypy
-%endif
%files %{python_files}
%doc docs/
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mypy for openSUSE:Factory
checked in at 2025-07-30 11:41:11
Comparing /work/SRC/openSUSE:Factory/python-mypy (Old)
and /work/SRC/openSUSE:Factory/.python-mypy.new.13279 (New)
Package is "python-mypy"
Wed Jul 30 11:41:11 2025 rev:16 rq:1296148 version:1.17.0
Changes:
--- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2025-07-17
17:17:25.700415966 +0200
+++ /work/SRC/openSUSE:Factory/.python-mypy.new.13279/python-mypy.changes
2025-07-30 11:41:22.036753339 +0200
@@ -1,0 +2,5 @@
+Thu Jul 24 10:36:56 UTC 2025 - Markéta Machová
+
+- Make the libalternatives transition conditional
+
+---
Other differences:
--
++ python-mypy.spec ++
--- /var/tmp/diff_new_pack.0bLSpp/_old 2025-07-30 11:41:23.908830910 +0200
+++ /var/tmp/diff_new_pack.0bLSpp/_new 2025-07-30 11:41:23.920831408 +0200
@@ -42,10 +42,8 @@
BuildRequires: %{python_module tomli >= 1.1.0}
BuildRequires: %{python_module typing_extensions >= 4.6.0}
BuildRequires: %{python_module wheel}
-BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: alts
Requires: python-mypy_extensions >= 0.4.3
Requires: python-pathspec
Requires: python-typing_extensions >= 3.10
@@ -56,6 +54,13 @@
Provides: mypy = %{version}
Obsoletes: mypy < %{version}
%endif
+%if %{with libalternatives}
+BuildRequires: alts
+Requires: alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
%if %{with test}
BuildRequires: %{python_module attrs >= 18}
BuildRequires: %{python_module devel}
@@ -116,7 +121,9 @@
%python_clone -a %{buildroot}%{_bindir}/mypyc
%python_clone -a %{buildroot}%{_bindir}/stubgen
%python_clone -a %{buildroot}%{_bindir}/stubtest
+%if %{with libalternatives}
%python_group_libalternatives mypy dmypy mypyc stubgen stubtest
+%endif
# solve "W: python-doc-in-package" in 3.9, 3.10 and 3.11, but not in 3.8 (thus
-f to ignore the error)
%python_expand rm -rf %{buildroot}%{$python_sitelib}/mypyc/doc
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -146,8 +153,17 @@
%pytest -n auto -k "not (testallexcept ${donttest})"
%endif
+%if %{with libalternatives}
%pre
%python_libalternatives_reset_alternative mypy
+%else
+
+%post
+%python_install_alternative mypy dmypy mypyc stubgen stubtest
+
+%postun
+%python_uninstall_alternative mypy
+%endif
%files %{python_files}
%doc docs/
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mypy for openSUSE:Factory checked in at 2025-06-01 21:36:30 Comparing /work/SRC/openSUSE:Factory/python-mypy (Old) and /work/SRC/openSUSE:Factory/.python-mypy.new.16005 (New) Package is "python-mypy" Sun Jun 1 21:36:30 2025 rev:13 rq:1281381 version:1.16.0 Changes: --- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2025-05-06 16:40:12.785119703 +0200 +++ /work/SRC/openSUSE:Factory/.python-mypy.new.16005/python-mypy.changes 2025-06-01 21:36:54.890186131 +0200 @@ -1,0 +2,250 @@ +Thu May 29 15:25:57 UTC 2025 - Matej Cepl + +- Remove upstreamed mypy-1.14.1-gcc15.patch +- Update to 1.16.0: +Different Property Getter and Setter Types + +Mypy now supports using different types for a property getter and setter: + +class A: +_value: int + +@property +def foo(self) -> int: +return self._value + [email protected] +def foo(self, x: str | int) -> None: +try: +self._value = int(x) +except ValueError: +raise Exception(f"'{x}' is not a valid value for 'foo'") + +This was contributed by Ivan Levkivskyi (PR 18510). +Flexible Variable Redefinitions (Experimental) + +Mypy now allows unannotated variables to be freely redefined +with different types when using the experimental +--allow-redefinition-new flag. You will also need to enable +--local-partial-types. Mypy will now infer a union type when +different types are assigned to a variable: + +# mypy: allow-redefinition-new, local-partial-types + +def f(n: int, b: bool) -> int | str: +if b: +x = n +else: +x = str(n) +# Type of 'x' is int | str here. +return x + +Without the new flag, mypy only supports inferring optional +types (X | None) from multiple assignments, but now mypy can +infer arbitrary union types. + +An unannotated variable can now also have different types in +different code locations: + +# mypy: allow-redefinition-new, local-partial-types +... + +if cond(): +for x in range(n): +# Type of 'x' is 'int' here +... +else: +for x in ['a', 'b']: +# Type of 'x' is 'str' here +... + +We are planning to turn this flag on by default in mypy 2.0, +along with --local-partial-types. The feature is still +experimental and has known issues, and the semantics may +still change in the future. You may need to update or add +type annotations when switching to the new behavior, but if +you encounter anything unexpected, please create a GitHub +issue. + +This was contributed by Jukka Lehtosalo (PR 18727, PR 19153). +Stricter Type Checking with Imprecise Types + +Mypy can now detect additional errors in code that uses Any +types or has missing function annotations. + +When calling dict.get(x, None) on an object of type dict[str, +Any], this now results in an optional type (in the past it +was Any): + +def f(d: dict[str, Any]) -> int: +# Error: Return value has type "Any | None" but expected "int" +return d.get("x", None) + +Type narrowing using assignments can result in more precise +types in the presence of Any types: + +def foo(): ... + +def bar(n: int) -> None: +x = foo() +# Type of 'x' is 'Any' here +if n > 5: +x = str(n) +# Type of 'x' is 'str' here + +When using --check-untyped-defs, unannotated overrides are +now checked more strictly against superclass definitions. + +Related PRs: + +Use union types instead of join in binder (Ivan Levkivskyi, PR 18538) +Check superclass compatibility of untyped methods if +--check-untyped-defs is set (Stanislav Terliakov, PR +18970) + +Improvements to Attribute Resolution + +This release includes several fixes to inconsistent +resolution of attribute, method and descriptor types. + +Consolidate descriptor handling (Ivan Levkivskyi, PR 18831) +Make multiple inheritance checking use common semantics (Ivan Levkivskyi, PR 18876) +Make method override checking use common semantics (Ivan Levkivskyi, PR 18870) +Fix descriptor overload selection (Ivan Levkivskyi, PR 18868) +Handle union types when binding self (Ivan Levkivskyi, PR 18867) +Make variable override checking use common semantics (Ivan Levkivskyi, PR 18847) +Make descriptor handling behave consistently (Ivan Levkivskyi, PR 18831) + +Make Implementation for Abstract Overloads Optional + +The implementation can now be omitted for abstract ove
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mypy for openSUSE:Factory
checked in at 2025-05-06 16:40:12
Comparing /work/SRC/openSUSE:Factory/python-mypy (Old)
and /work/SRC/openSUSE:Factory/.python-mypy.new.30101 (New)
Package is "python-mypy"
Tue May 6 16:40:12 2025 rev:12 rq:1274642 version:1.14.1
Changes:
--- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2025-01-28
14:58:02.927246194 +0100
+++ /work/SRC/openSUSE:Factory/.python-mypy.new.30101/python-mypy.changes
2025-05-06 16:40:12.785119703 +0200
@@ -1,0 +2,11 @@
+Mon May 5 13:29:04 UTC 2025 - Friedrich Haubensak
+
+- Add mypy-1.14.1-gcc15.patch from upstream to fix gcc15 compile
+ time error
+
+---
+Mon May 5 12:58:47 UTC 2025 - Matej Cepl
+
+- Update vendored types_* to the appropriate versions.
+
+---
Old:
types-psutil-6.0.0.20241011.tar.gz
types-setuptools-75.1.0.20241014.tar.gz
New:
mypy-1.14.1-gcc15.patch
types_psutil-7.0.0.20250401.tar.gz
types_setuptools-78.1.0.20250329.tar.gz
BETA DEBUG BEGIN:
New:
- Add mypy-1.14.1-gcc15.patch from upstream to fix gcc15 compile
time error
BETA DEBUG END:
Other differences:
--
++ python-mypy.spec ++
--- /var/tmp/diff_new_pack.qxGadH/_old 2025-05-06 16:40:13.641155479 +0200
+++ /var/tmp/diff_new_pack.qxGadH/_new 2025-05-06 16:40:13.641155479 +0200
@@ -16,10 +16,10 @@
#
-%{?sle15_python_module_pythons}
+%define types_psutil_version 7.0.0.20250401
+%define types_setuptools_version 78.1.0.20250329
%bcond_without test
-%define types_psutil_version 6.0.0.20241011
-%define types_setuptools_version 75.1.0.20241014
+%{?sle15_python_module_pythons}
Name: python-mypy
Version:1.14.1
Release:0
@@ -29,10 +29,12 @@
Source0:
https://files.pythonhosted.org/packages/source/m/mypy/mypy-%{version}.tar.gz
# Source0:mypy-%%{version}.tar.gz
# License Source1: Apache-2.0. Only for the test suite, not packaged here.
-Source1:
https://files.pythonhosted.org/packages/source/t/types-psutil/types-psutil-%{types_psutil_version}.tar.gz
+Source1:
https://files.pythonhosted.org/packages/source/t/types_psutil/types_psutil-%{types_psutil_version}.tar.gz
# License Source2: Apache-2.0. Only for the test suite, not packaged here.
-Source2:
https://files.pythonhosted.org/packages/source/t/types-setuptools/types-setuptools-%{types_setuptools_version}.tar.gz
+Source2:
https://files.pythonhosted.org/packages/source/t/types_setuptools/types_setuptools-%{types_setuptools_version}.tar.gz
Source99: python-mypy-rpmlintrc
+# PATCH-FIX-UPSTREAM
+Patch1: mypy-1.14.1-gcc15.patch
BuildRequires: %{python_module exceptiongroup}
BuildRequires: %{python_module mypy_extensions >= 1.0.0}
BuildRequires: %{python_module pip}
@@ -40,20 +42,19 @@
BuildRequires: %{python_module tomli >= 1.1.0}
BuildRequires: %{python_module typing_extensions >= 4.6.0}
BuildRequires: %{python_module wheel}
-BuildRequires: %{python_module wheel}
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 python-base < 3.11)
Requires(post): update-alternatives
-Requires(postun):update-alternatives
+Requires(postun): update-alternatives
+Suggests: python-psutil >= 4.0
+BuildArch: noarch
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
Provides: mypy = %{version}
Obsoletes: mypy < %{version}
%endif
-Suggests: python-psutil >= 4.0
-BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module attrs >= 18}
BuildRequires: %{python_module devel}
@@ -85,15 +86,16 @@
and union types.
%prep
-%setup -q -a 1 -a 2 -n mypy-%{version}
+%setup -q -a1 -n mypy-%{version}
+%setup -q -T -D -a2 -n mypy-%{version}
%autopatch -p1
sed -i '/env python3/d' ./mypy/stubgenc.py
sed -i '/env python3/d' ./mypy/stubgen.py
mkdir mystubs
-mv types-setuptools-%{types_setuptools_version}/setuptools-stubs* mystubs/
-mv types-psutil-%{types_psutil_version}/psutil-stubs* mystubs/
+mv types_setuptools-%{types_setuptools_version}/setuptools-stubs* mystubs/
+mv types_psutil-%{types_psutil_version}/psutil-stubs* mystubs/
# "E: wrong-script-end-of-line-encoding" and "E: spurious-executable-perm",
file is not needed anyways
rm docs/make.bat
@@ -153,7 +155,7 @@
%license LICENSE
%{python_sitelib}/mypy
%{python_sitelib}/mypyc
-# %{python_sitelib}/mypy-%%{version}.dist-info
+# %%{python_sitelib}/
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mypy for openSUSE:Factory checked in at 2025-01-28 14:58:02 Comparing /work/SRC/openSUSE:Factory/python-mypy (Old) and /work/SRC/openSUSE:Factory/.python-mypy.new.2316 (New) Package is "python-mypy" Tue Jan 28 14:58:02 2025 rev:11 rq:1240302 version:1.14.1 Changes: --- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2024-10-15 14:58:03.755826871 +0200 +++ /work/SRC/openSUSE:Factory/.python-mypy.new.2316/python-mypy.changes 2025-01-28 14:58:02.927246194 +0100 @@ -1,0 +2,98 @@ +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) +
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mypy for openSUSE:Factory
checked in at 2024-10-06 17:51:45
Comparing /work/SRC/openSUSE:Factory/python-mypy (Old)
and /work/SRC/openSUSE:Factory/.python-mypy.new.19354 (New)
Package is "python-mypy"
Sun Oct 6 17:51:45 2024 rev:8 rq:1205767 version:1.11.2
Changes:
--- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2024-09-12
16:54:01.115015343 +0200
+++ /work/SRC/openSUSE:Factory/.python-mypy.new.19354/python-mypy.changes
2024-10-06 17:51:59.629159365 +0200
@@ -1,0 +2,5 @@
+Fri Oct 4 14:11:11 UTC 2024 - Markéta Machová
+
+- Add upstream latest-pythons.patch to fix tests on latest Python releases
+
+---
New:
latest-pythons.patch
BETA DEBUG BEGIN:
New:
- Add upstream latest-pythons.patch to fix tests on latest Python releases
BETA DEBUG END:
Other differences:
--
++ python-mypy.spec ++
--- /var/tmp/diff_new_pack.WZbSwq/_old 2024-10-06 17:52:00.165181640 +0200
+++ /var/tmp/diff_new_pack.WZbSwq/_new 2024-10-06 17:52:00.169181807 +0200
@@ -32,6 +32,8 @@
# License Source2: Apache-2.0. Only for the test suite, not packaged here.
Source2:
https://files.pythonhosted.org/packages/source/t/types-setuptools/types-setuptools-%{types_setuptools_version}.tar.gz
Source99: python-mypy-rpmlintrc
+# PATCH-FIX-UPSTREAM https://github.com/python/mypy/pull/17849 Fix tests on
latest Python 3.13 (and 3.12)
+Patch0: latest-pythons.patch
BuildRequires: %{python_module exceptiongroup}
BuildRequires: %{python_module mypy_extensions >= 1.0.0}
BuildRequires: %{python_module pip}
++ latest-pythons.patch ++
>From 1a2c8e2a4df21532e4952191cad74ae50083f4ad Mon Sep 17 00:00:00 2001
From: Shantanu <[email protected]>
Date: Sat, 28 Sep 2024 14:20:45 -0700
Subject: [PATCH] Fix tests on latest Python 3.13 (and 3.12) (#17849)
Related to python/cpython@c6c3d970ba54f4ad4c4151bb262cef96d3299480
(python/cpython#121329), thanks to brianschubert for noticing
---
mypyc/test-data/run-dicts.test | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/mypyc/test-data/run-dicts.test b/mypyc/test-data/run-dicts.test
index 58b862e3f303..d4f5b945309e 100644
--- a/mypyc/test-data/run-dicts.test
+++ b/mypyc/test-data/run-dicts.test
@@ -157,7 +157,11 @@ else:
try:
clear_during_iter(d)
except RuntimeError as e:
-assert str(e) == "OrderedDict changed size during iteration"
+assert str(e) in (
+"OrderedDict changed size during iteration",
+# Error message changed in Python 3.13 and some 3.12 patch version
+"OrderedDict mutated during iteration",
+)
else:
assert False
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mypy for openSUSE:Factory checked in at 2024-09-12 16:53:58 Comparing /work/SRC/openSUSE:Factory/python-mypy (Old) and /work/SRC/openSUSE:Factory/.python-mypy.new.17570 (New) Package is "python-mypy" Thu Sep 12 16:53:58 2024 rev:7 rq:1199970 version:1.11.2 Changes: --- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2024-06-21 16:02:59.477594175 +0200 +++ /work/SRC/openSUSE:Factory/.python-mypy.new.17570/python-mypy.changes 2024-09-12 16:54:01.115015343 +0200 @@ -1,0 +2,83 @@ +Tue Sep 10 15:01:11 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 1.11.2 + * Support Python 3.12 Syntax for Generics (PEP 695) + * Support for `functools.partial` + * Stricter Checks for Untyped Overrides + * Type Inference Improvements + * Improvements to Detection of Overlapping Overloads + * Better Support for Type Hints in Expressions + * Mypyc Improvements ++ Support Python 3.12 syntax for generic functions and classes ++ Support Python 3.12 type alias syntax ++ Fix ParamSpec ++ Inline fast paths of integer unboxing operations ++ Inline tagged integer arithmetic and bitwise operations ++ Allow specifying primitives as pure + * Changes to Stubtest ++ Ignore `_ios_support` ++ Improve support for Python 3.13 + * Changes to Stubgen ++ Gracefully handle invalid `Optional` and recognize aliases to PEP 604 unions ++ Fix for Python 3.13 ++ Preserve enum value initialisers + * Miscellaneous New Features ++ Add error format support and JSON output option via `--output json` ++ Support `enum.member` in Python 3.11+ ++ Support `enum.nonmember` in Python 3.11+ ++ Support `namedtuple.__replace__` in Python 3.13 ++ Support `rename=True` in collections.namedtuple ++ Add support for `__spec__` + * Changes to Error Reporting ++ Mention `--enable-incomplete-feature=NewGenericSyntax` in messages ++ Do not report plugin-generated methods with `explicit-override` ++ Use and display namespaces for function type variables ++ Fix false positive for Final local scope variable in Protocol ++ Use Never in more messages, use ambiguous in join ++ Log full path to config file in verbose output ++ Added `[prop-decorator]` code for unsupported property decorators (#14461) ++ Suppress second error message with `:=` and `[truthy-bool]` ++ Generate error for assignment of functional Enum to variable of different name ++ Fix error reporting on cached run after uninstallation of third party library + * Fixes for Crashes ++ Fix daemon crash on invalid type in TypedDict ++ Fix crash and bugs related to `partial()` ++ Fix crash when overriding with unpacked TypedDict ++ Fix crash on TypedDict unpacking for ParamSpec ++ Fix crash involving recursive union of tuples ++ Fix crash on invalid callable property override ++ Fix crash on unpacking self in NamedTuple ++ Fix crash on recursive alias with an optional type ++ Fix crash on type comment inside generic definitions + * Changes to Documentation ++ Use inline config in documentation for optional error codes ++ Use lower-case generics in documentation ++ Add documentation for show-error-code-links ++ Update CONTRIBUTING.md to include commands for Windows + * Other Notable Improvements and Fixes ++ Fix ParamSpec inference against TypeVarTuple ++ Fix explicit type for `partial` ++ Always allow lambda calls ++ Fix isinstance checks with PEP 604 unions containing None ++ Fix self-referential upper bound in new-style type variables ++ Consider overlap between instances and callables ++ Allow new-style self-types in classmethods ++ Fix isinstance with type aliases to PEP 604 unions ++ Properly handle unpacks in overlap checks ++ Fix type application for classes with generic constructors ++ Update `typing_extensions` to >=4.6.0 to fix Python 3.12 error ++ Avoid "does not return" error in lambda ++ Fix bug with descriptors in non-strict-optional mode ++ Donât leak unreachability from lambda body to surrounding scope ++ Fix issues with non-ASCII characters on Windows ++ Fix for type narrowing of negative integer literals ++ Fix confusion between .py and .pyi files in mypy daemon ++ Fix type of `tuple[X, Y]` expression ++ Don't forget that a `TypedDict` was wrapped in `Unpack` + after a `name-defined` error occurred ++ Mark annotated argument as having an explicit, not inferred type ++ Don't consider Enum private attributes as enum members ++ Fix Literal strings containing pipe characters +- Update BuildRequires from setup.py + +-
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mypy for openSUSE:Factory
checked in at 2024-04-04 22:26:29
Comparing /work/SRC/openSUSE:Factory/python-mypy (Old)
and /work/SRC/openSUSE:Factory/.python-mypy.new.1905 (New)
Package is "python-mypy"
Thu Apr 4 22:26:29 2024 rev:5 rq:1164520 version:1.9.0
Changes:
--- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2024-03-29
13:10:05.54986 +0100
+++ /work/SRC/openSUSE:Factory/.python-mypy.new.1905/python-mypy.changes
2024-04-04 22:27:48.258725341 +0200
@@ -1,0 +2,8 @@
+Thu Apr 4 08:32:32 UTC 2024 - Steve Kowalik
+
+- Add patch workaround-parenthesized-context-managers.patch:
+ * Work around parenthesized context managers issue.
+- Stop skipping tests under Python 3.6.
+- Drop -x argument to pytest.
+
+---
New:
workaround-parenthesized-context-managers.patch
BETA DEBUG BEGIN:
New:
- Add patch workaround-parenthesized-context-managers.patch:
* Work around parenthesized context managers issue.
BETA DEBUG END:
Other differences:
--
++ python-mypy.spec ++
--- /var/tmp/diff_new_pack.h1mI7A/_old 2024-04-04 22:27:49.174759067 +0200
+++ /var/tmp/diff_new_pack.h1mI7A/_new 2024-04-04 22:27:49.178759213 +0200
@@ -35,6 +35,8 @@
# License Source3: Apache-2.0. Only for the test suite, not packaged here.
Source3:
https://files.pythonhosted.org/packages/source/t/types-setuptools/types-setuptools-%{types_setuptools_version}.tar.gz
Source99: python-mypy-rpmlintrc
+# PATCH-FIX-UPSTREAM gh#python/mypy#16949
+Patch0: workaround-parenthesized-context-managers.patch
BuildRequires: %{python_module exceptiongroup}
BuildRequires: %{python_module mypy_extensions >= 1.0.0}
BuildRequires: %{python_module pip}
@@ -51,7 +53,7 @@
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
+Requires(postun): update-alternatives
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
Provides: mypy = %{version}
Obsoletes: mypy < %{version}
@@ -138,8 +140,6 @@
if [ $(getconf LONG_BIT) -ne 64 ]; then
# gh#python/mypy#11148
donttest+=" or testSubclassSpecialize or testMultiModuleSpecialize"
- # fails only in python36 (EOL)
- python36_donttest+=" or testIntOps"
fi
# the fake test_module is not in the modulepath without pytest-xdist
# or with pytest-xdist >= 2.3 -- https://github.com/python/mypy/issues/11019
@@ -148,7 +148,7 @@
donttest+=" or testMathOps or testFloatOps"
# fails on Python 3.11.4, see gh#python/mypy#15446. Patch
db5b5af1201fff03465b0684d16b6489a62a3d78 does not apply clean, better wait for
a new upstream version
donttest+=" or PEP561Suite"
-%pytest -n auto -k "not (testallexcept ${donttest} ${$python_donttest})" -x
+%pytest -n auto -k "not (testallexcept ${donttest})"
%endif
%post
@@ -162,7 +162,7 @@
%license LICENSE
%{python_sitelib}/mypy
%{python_sitelib}/mypyc
-%{python_sitelib}/mypy-%{version}*-info
+%{python_sitelib}/mypy-%{version}.dist-info
%python_alternative %{_bindir}/dmypy
%python_alternative %{_bindir}/mypy
%python_alternative %{_bindir}/mypyc
++ workaround-parenthesized-context-managers.patch ++
>From fb610cb043ea990046d3665ac39238d5223e3eb3 Mon Sep 17 00:00:00 2001
From: hauntsaninja
Date: Sun, 25 Feb 2024 14:01:07 -0800
Subject: [PATCH 1/4] Workaround parenthesised context manager issue
Fixes #16945
---
mypy/checker.py | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/mypy/checker.py b/mypy/checker.py
index 56be3db3f9e7..5081265c9cac 100644
--- a/mypy/checker.py
+++ b/mypy/checker.py
@@ -526,16 +526,18 @@ def check_second_pass(
# print("XXX in pass %d, class %s, function %s" %
# (self.pass_num, type_name, node.fullname or
node.name))
done.add(node)
-with (
+tscope_class_ctx = (
self.tscope.class_scope(active_typeinfo)
if active_typeinfo
else nullcontext()
-):
-with (
+)
+with tscope_class_ctx:
+checker_scope_class_ctx = (
self.scope.push_class(active_typeinfo)
if active_typeinfo
else nullcontext()
-):
+)
+with checker_scope_class_ctx:
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mypy for openSUSE:Factory
checked in at 2024-03-29 13:09:32
Comparing /work/SRC/openSUSE:Factory/python-mypy (Old)
and /work/SRC/openSUSE:Factory/.python-mypy.new.1905 (New)
Package is "python-mypy"
Fri Mar 29 13:09:32 2024 rev:4 rq:1163260 version:1.9.0
Changes:
--- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2024-03-25
21:09:11.547373377 +0100
+++ /work/SRC/openSUSE:Factory/.python-mypy.new.1905/python-mypy.changes
2024-03-29 13:10:05.54986 +0100
@@ -1,0 +2,6 @@
+Wed Mar 27 15:59:56 UTC 2024 - ecsos
+
+- Disable self_check under %check in Leap because it does not work
+ and prevent package building.
+
+---
Other differences:
--
++ python-mypy.spec ++
--- /var/tmp/diff_new_pack.reu5M8/_old 2024-03-29 13:10:07.325287570 +0100
+++ /var/tmp/diff_new_pack.reu5M8/_new 2024-03-29 13:10:07.329287716 +0100
@@ -51,7 +51,7 @@
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
+Requires(postun):update-alternatives
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
Provides: mypy = %{version}
Obsoletes: mypy < %{version}
@@ -126,11 +126,12 @@
%if %{with test}
%check
-
+%if 0%{?suse_version} > 1600
%{python_expand # self-check with manually provided stubs for typed_ast
export PYTHONPATH=%{buildroot}%{$python_sitelib}:./mystubs
$python -m mypy --config-file mypy_self_check.ini -p mypy
}
+%endif
unset PYTHONPATH
# cannot compile unoptimized with suse headers
export MYPYC_OPT_LEVEL=2
commit python-mypy for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mypy for openSUSE:Factory
checked in at 2024-01-03 12:30:34
Comparing /work/SRC/openSUSE:Factory/python-mypy (Old)
and /work/SRC/openSUSE:Factory/.python-mypy.new.28375 (New)
Package is "python-mypy"
Wed Jan 3 12:30:34 2024 rev:2 rq:1136250 version:1.8.0
Changes:
--- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2023-09-06
19:03:48.079553635 +0200
+++ /work/SRC/openSUSE:Factory/.python-mypy.new.28375/python-mypy.changes
2024-01-03 12:31:14.833196761 +0100
@@ -1,0 +2,9 @@
+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
+
+---
Old:
mypy-1.5.1.tar.gz
New:
mypy-1.8.0.tar.gz
Other differences:
--
++ python-mypy.spec ++
--- /var/tmp/diff_new_pack.TX44LC/_old 2024-01-03 12:31:15.381216803 +0100
+++ /var/tmp/diff_new_pack.TX44LC/_new 2024-01-03 12:31:15.381216803 +0100
@@ -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: 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"
++ mypy-1.5.1.tar.gz -> mypy-1.8.0.tar.gz ++
52356 lines of diff (skipped)
