From 20c6a4fe529284f3cf9a30ec697cca79de8afe6b Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 17 Jul 2025 17:36:38 +0300 Subject: python3-mypy: Upgrade 1.15.0 -> 1.17.0 Upgrade to release 1.17.0: - Mypy can now optionally generate an error if a match statement does not match exhaustively, without having to use assert_never(...). Enable this by using --enable-error-code exhaustive-match. - Handle corner case: protocol/class variable/descriptor - Fix a few inconsistencies in protocol/type object interactions - Refactor/unify access to static attributes - Remove inconsistencies in operator handling - Make protocol subtyping more consistent - Fix nondeterministic type checking by making join with explicit Protocol and type promotion commute - Fix nondeterministic type checking caused by nonassociative of None joins - Fix nondeterministic type checking caused by nonassociativity of joins - Fix nondeterministic type checking by making join between type and TypeVar commute - Mypy only supports Python 3.9+. The --force-uppercase-builtins flag is now deprecated as unnecessary, and a no-op. It will be removed in a future version. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-mypy_1.15.0.bb | 23 --------------------- .../recipes-devtools/python/python3-mypy_1.17.0.bb | 24 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 23 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-mypy_1.15.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-mypy_1.17.0.bb diff --git a/meta-python/recipes-devtools/python/python3-mypy_1.15.0.bb b/meta-python/recipes-devtools/python/python3-mypy_1.15.0.bb deleted file mode 100644 index ebcac51ea1..0000000000 --- a/meta-python/recipes-devtools/python/python3-mypy_1.15.0.bb +++ /dev/null @@ -1,23 +0,0 @@ -SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)" -HOMEPAGE = "https://github.com/python/mypy" -LICENSE = "MIT & Python-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=8d62fd8f8648cb018e52857347e340b9" - -inherit pypi python_setuptools_build_meta - -SRC_URI[sha256sum] = "404534629d51d3efea5c800ee7c42b72a6554d6c400e6a79eafe15d11341fd43" - -BBCLASSEXTEND = "native" - -DEPENDS += " \ - python3-mypy-extensions-native \ - python3-types-psutil-native \ - python3-types-setuptools-native \ - python3-typing-extensions-native \ -" - -RDEPENDS:${PN} += " \ - python3-modules \ - python3-mypy-extensions \ - python3-typing-extensions \ -" diff --git a/meta-python/recipes-devtools/python/python3-mypy_1.17.0.bb b/meta-python/recipes-devtools/python/python3-mypy_1.17.0.bb new file mode 100644 index 0000000000..0d1e0bd16e --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-mypy_1.17.0.bb @@ -0,0 +1,24 @@ +SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)" +HOMEPAGE = "https://github.com/python/mypy" +LICENSE = "MIT & Python-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8d62fd8f8648cb018e52857347e340b9" + +inherit pypi python_setuptools_build_meta + +SRC_URI[sha256sum] = "e5d7ccc08ba089c06e2f5629c660388ef1fee708444f1dee0b9203fa031dee03" + +BBCLASSEXTEND = "native" + +DEPENDS += " \ + python3-mypy-extensions-native \ + python3-types-psutil-native \ + python3-types-setuptools-native \ + python3-typing-extensions-native \ + python3-pathspec-native \ +" + +RDEPENDS:${PN} += " \ + python3-modules \ + python3-mypy-extensions \ + python3-typing-extensions \ +" -- cgit v1.2.3-54-g00ecf