From e1a0b401c2b7d5f19c743f637210d4773c45cc48 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Sat, 1 Nov 2025 16:06:59 +0100 Subject: [PATCH 1/2] [jwcrypto] Work around stubtest issues See https://github.com/python/mypy/issues/20160 for details. Closes: #14893 --- stubs/jwcrypto/@tests/stubtest_allowlist.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stubs/jwcrypto/@tests/stubtest_allowlist.txt b/stubs/jwcrypto/@tests/stubtest_allowlist.txt index 10f855e9e871..f306c9980a7c 100644 --- a/stubs/jwcrypto/@tests/stubtest_allowlist.txt +++ b/stubs/jwcrypto/@tests/stubtest_allowlist.txt @@ -4,3 +4,6 @@ jwcrypto.tests-cookbook # even if the deprecated decorator is applied, the attribute is not present jwcrypto.jwt.JWTMissingKeyID.__deprecated__ + +# https://github.com/python/mypy/issues/20160 +jwcrypto.jwt.JWTMissingKeyID.__init_subclass__ From 2d38298703e432234093d48dc087928fe5ec9e48 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Sat, 1 Nov 2025 16:29:10 +0100 Subject: [PATCH 2/2] Update stubs/jwcrypto/@tests/stubtest_allowlist.txt Co-authored-by: Semyon Moroz --- stubs/jwcrypto/@tests/stubtest_allowlist.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/jwcrypto/@tests/stubtest_allowlist.txt b/stubs/jwcrypto/@tests/stubtest_allowlist.txt index f306c9980a7c..b81e7c4baa58 100644 --- a/stubs/jwcrypto/@tests/stubtest_allowlist.txt +++ b/stubs/jwcrypto/@tests/stubtest_allowlist.txt @@ -6,4 +6,4 @@ jwcrypto.tests-cookbook jwcrypto.jwt.JWTMissingKeyID.__deprecated__ # https://github.com/python/mypy/issues/20160 -jwcrypto.jwt.JWTMissingKeyID.__init_subclass__ +(jwcrypto.jwt.JWTMissingKeyID.__init_subclass__)?