From 2efee0c0155877d6aed874c93d43dfc2cfd0842d Mon Sep 17 00:00:00 2001 From: Charles-Antoine Dupont Date: Fri, 27 Feb 2026 16:14:05 -0500 Subject: [PATCH] Fix auth0-python: SignatureVerifier.verify_signature is sync, not async The typeshed stub incorrectly declares verify_signature as async def. The actual auth0-python implementation is synchronous. See: https://github.com/auth0/auth0-python/blob/master/auth0/authentication/token_verifier.py#L103 --- stubs/auth0-python/auth0/authentication/token_verifier.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/auth0-python/auth0/authentication/token_verifier.pyi b/stubs/auth0-python/auth0/authentication/token_verifier.pyi index 8ce69a71fa9d..acc4a3057f04 100644 --- a/stubs/auth0-python/auth0/authentication/token_verifier.pyi +++ b/stubs/auth0-python/auth0/authentication/token_verifier.pyi @@ -4,7 +4,7 @@ from typing import ClassVar class SignatureVerifier: DISABLE_JWT_CHECKS: ClassVar[dict[str, bool]] def __init__(self, algorithm: str) -> None: ... - async def verify_signature(self, token: str) -> dict[str, Incomplete]: ... + def verify_signature(self, token: str) -> dict[str, Incomplete]: ... class SymmetricSignatureVerifier(SignatureVerifier): def __init__(self, shared_secret: str, algorithm: str = "HS256") -> None: ...