From 450dd90aab07a1186132a08c4a451d4110820b8c Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 16 Feb 2026 14:29:51 +0200 Subject: python3-typeguard: Upgrade 4.4.4 -> 4.5.0 Upgrade to release 4.5.0: - Restored the check_argument_types() and check_return_type() functions that were dropped in v3.0.0, for users who want more fine-grained control over run-time type checking - Added support for extra_items in TypedDict, allowing users to specify the types for the values of "leftover" keys in a typed dict (keys that weren't explicitly defined in the TypedDict subclass) - Fixed NameError when evaluating forward references on Python 3.14 - Fixed protocol check incorrectly rejecting inherited classmethods and staticmethods - Fixed missing TypeCheckError when checking TypedDict with Required[...] annotations - Fixed type aliases (e.g. type Foo = list[int]) not being resolved during type checking - Fixed type-checked assignments to a single tuple target (e.g. x, = ("foo",)) falsely raising TypeCheckedError Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../python/python3-typeguard_4.4.4.bb | 29 --------------------- .../python/python3-typeguard_4.5.0.bb | 30 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 29 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb create mode 100644 meta-python/recipes-devtools/python/python3-typeguard_4.5.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb b/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb deleted file mode 100644 index 812288881d..0000000000 --- a/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb +++ /dev/null @@ -1,29 +0,0 @@ -SUMMARY = "Run-time type checker for Python" -HOMEPAGE = "https://pypi.org/project/typeguard/" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=f0e423eea5c91e7aa21bdb70184b3e53" - -SRC_URI[sha256sum] = "3a7fd2dffb705d4d0efaed4306a704c89b9dee850b688f060a8b1615a79e5f74" - -inherit pypi python_setuptools_build_meta ptest-python-pytest - -RDEPENDS:${PN} += " \ - python3-core \ - python3-compression \ - python3-unittest \ - python3-typing-extensions \ -" - -RDEPENDS:${PN}-ptest += " \ - python3-typing-extensions \ - python3-unixadmin \ - python3-mypy \ - python3-pathspec \ -" - -DEPENDS += "\ - python3-distutils-extra-native \ - python3-setuptools-scm-native \ -" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-typeguard_4.5.0.bb b/meta-python/recipes-devtools/python/python3-typeguard_4.5.0.bb new file mode 100644 index 0000000000..e294e3e701 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-typeguard_4.5.0.bb @@ -0,0 +1,30 @@ +SUMMARY = "Run-time type checker for Python" +HOMEPAGE = "https://pypi.org/project/typeguard/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f0e423eea5c91e7aa21bdb70184b3e53" + +SRC_URI[sha256sum] = "749bea21cdb2553e12831bc29f1eae980b22c7de8331ab67ae7db9e85470b5a7" + +inherit pypi python_setuptools_build_meta ptest-python-pytest + +RDEPENDS:${PN} += " \ + python3-core \ + python3-compression \ + python3-unittest \ + python3-typing-extensions \ + python3-json \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-typing-extensions \ + python3-unixadmin \ + python3-mypy \ + python3-pathspec \ +" + +DEPENDS += "\ + python3-distutils-extra-native \ + python3-setuptools-scm-native \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf