From e4cd512851e739bc9b4d9e23e63a9521b33ddf6a211fa57ca4ef4403428c9c0c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 14 Oct 2024 13:04:21 +0000 Subject: [PATCH] - Update to officially released version 1.12.0: - Support Python 3.12 Syntax for Generics (PEP 695) - Related improvements are included: - Document Python 3.12 type parameter syntax (Jukka Lehtosalo, PR 17816) - Further documentation updates (Jukka Lehtosalo, PR 17826) - Allow Self return types with contravariance (Jukka Lehtosalo, PR 17786) - Enable new type parameter syntax by default (Jukka Lehtosalo, PR 17798) - Generate error if new-style type alias used as base class (Jukka Lehtosalo, PR 17789) - Inherit variance if base class has explicit variance (Jukka Lehtosalo, PR 17787) - Fix crash on invalid type var reference (Jukka Lehtosalo, PR 17788) - Fix covariance of frozen dataclasses (Jukka Lehtosalo, PR 17783) - Allow covariance with attribute that has "_" name prefix (Jukka Lehtosalo, PR 17782) - Support Annotated[...] in new-style type aliases (Jukka Lehtosalo, PR 17777) - Fix nested generic classes (Jukka Lehtosalo, PR 17776) - Add detection and error reporting for the use of incorrect expressions within the scope of a type parameter and a type alias (Kirill Podoprigora, PR 17560) - Basic Support for Python 3.13 This release adds partial support for Python 3.13 features and compiled binaries for Python 3.13. Mypyc now also supports Python 3.13. - Various new stdlib features and changes (through typeshed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=24 --- mypy-1.11.2+git.1728499967.eca206d.obscpio | 3 - mypy-1.12.0.tar.gz | 3 + python-mypy.changes | 80 ++++++++++++++++++++++ python-mypy.spec | 6 +- 4 files changed, 86 insertions(+), 6 deletions(-) delete mode 100644 mypy-1.11.2+git.1728499967.eca206d.obscpio create mode 100644 mypy-1.12.0.tar.gz diff --git a/mypy-1.11.2+git.1728499967.eca206d.obscpio b/mypy-1.11.2+git.1728499967.eca206d.obscpio deleted file mode 100644 index 42a42e4..0000000 --- a/mypy-1.11.2+git.1728499967.eca206d.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9bc181f31bff2b44e17abdbb96c53f133b0ebde1f35b304f5b422d11328487e -size 16113677 diff --git a/mypy-1.12.0.tar.gz b/mypy-1.12.0.tar.gz new file mode 100644 index 0000000..ecf9022 --- /dev/null +++ b/mypy-1.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65a22d87e757ccd95cbbf6f7e181e6caa87128255eb2b6be901bb71b26d8a99d +size 3149879 diff --git a/python-mypy.changes b/python-mypy.changes index e79a4a2..5f8e7b2 100644 --- a/python-mypy.changes +++ b/python-mypy.changes @@ -1,3 +1,83 @@ +------------------------------------------------------------------- +Mon Oct 14 12:48:06 UTC 2024 - Matej Cepl + +- Update to officially released version 1.12.0: + - Support Python 3.12 Syntax for Generics (PEP 695) + - Related improvements are included: + - Document Python 3.12 type parameter syntax (Jukka + Lehtosalo, PR 17816) + - Further documentation updates (Jukka Lehtosalo, PR 17826) + - Allow Self return types with contravariance (Jukka + Lehtosalo, PR 17786) + - Enable new type parameter syntax by default (Jukka + Lehtosalo, PR 17798) + - Generate error if new-style type alias used as base class + (Jukka Lehtosalo, PR 17789) + - Inherit variance if base class has explicit variance (Jukka + Lehtosalo, PR 17787) + - Fix crash on invalid type var reference (Jukka Lehtosalo, + PR 17788) + - Fix covariance of frozen dataclasses (Jukka Lehtosalo, PR + 17783) + - Allow covariance with attribute that has "_" name prefix + (Jukka Lehtosalo, PR 17782) + - Support Annotated[...] in new-style type aliases (Jukka + Lehtosalo, PR 17777) + - Fix nested generic classes (Jukka Lehtosalo, PR 17776) + - Add detection and error reporting for the use of incorrect + expressions within the scope of a type parameter and a type + alias (Kirill Podoprigora, PR 17560) + - Basic Support for Python 3.13 This release adds partial + support for Python 3.13 features and compiled binaries for + Python 3.13. Mypyc now also supports Python 3.13. + - Various new stdlib features and changes (through typeshed + stub improvements) + - typing.ReadOnly (see below for more) + - typing.TypeIs (added in mypy 1.10, PEP 742) + - Type parameter defaults when using the legacy syntax (PEP + Th696) ese features are not supported yet: + - warnings.deprecated (PEP 702) + - Type parameter defaults when using Python 3.12 type + parameter syntax + - Mypyc Support for Python 3.13 + - Add additional includes for Python 3.13 (Marc Mueller, PR + 17506) + - Add another include for Python 3.13 (Marc Mueller, PR + 17509) + - Fix ManagedDict functions for Python 3.13 (Marc Mueller, PR + 17507) + - Update mypyc test output for Python 3.13 (Marc Mueller, PR + 17508) + - Fix PyUnicode functions for Python 3.13 (Marc Mueller, PR + 17504) + - Fix _PyObject_LookupAttrId for Python 3.13 (Marc Mueller, + PR 17505) + - Fix _PyList_Extend for Python 3.13 (Marc Mueller, PR 17503) + - Fix gen_is_coroutine for Python 3.13 (Marc Mueller, PR + 17501) + - Fix _PyObject_FastCall for Python 3.13 (Marc Mueller, PR + 17502) + - Avoid uses of _PyObject_CallMethodOneArg on 3.13 (Jukka + Lehtosalo, PR 17526) + - Don't rely on _PyType_CalculateMetaclass on 3.13 (Jukka + Lehtosalo, PR 17525) + - Don't use _PyUnicode_FastCopyCharacters on 3.13 (Jukka + Lehtosalo, PR 17524) + - Don't use _PyUnicode_EQ on 3.13, as it's no longer exported + (Jukka Lehtosalo, PR 17523) + - Inferring Unions for Conditional Expressions + - You can now use typing.ReadOnly to specity TypedDict items as + read-only (PEP 705): + - Python 3.8 End of Life Approaching + - Planned Changes to Defaults - more details in the full + Changelog. + - Documentation Updates + - Experimental Inline TypedDict Syntax + - Stubgen Improvements + - Stubtest Improvements + - Other Notables Fixes and Improvements + - Typeshed Updates + ------------------------------------------------------------------- Wed Oct 09 22:17:25 UTC 2024 - mcepl@cepl.eu diff --git a/python-mypy.spec b/python-mypy.spec index 096533d..70319fc 100644 --- a/python-mypy.spec +++ b/python-mypy.spec @@ -21,13 +21,13 @@ %define types_psutil_version 5.9.5.17 %define types_setuptools_version 68.2.0.0 Name: python-mypy -Version: 1.11.2+git.1728499967.eca206d +Version: 1.12.0 Release: 0 Summary: Optional static typing for Python License: MIT URL: https://www.mypy-lang.org/ -# Source0: https://files.pythonhosted.org/packages/source/m/mypy/mypy-%%{version}.tar.gz -Source0: mypy-%{version}.tar.gz +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 # License Source2: Apache-2.0. Only for the test suite, not packaged here.