From 0f9902a62a9927a9417c60c96e46a957b38904db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 8 Oct 2025 21:59:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Tweak=20types=20for=20Python=203?= =?UTF-8?q?.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/_compat/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/_compat/shared.py b/fastapi/_compat/shared.py index 140c860c2..b7bad16bf 100644 --- a/fastapi/_compat/shared.py +++ b/fastapi/_compat/shared.py @@ -29,7 +29,7 @@ if sys.version_info < (3, 9): # this is used for is also never reached in this codebase, as it's a copy of # Pydantic's lenient_issubclass, just for compatibility with v1 # TODO: remove when dropping support for Python 3.8 - WithArgsTypes: tuple[Any, ...] = () + WithArgsTypes: Tuple[Any, ...] = () elif sys.version_info < (3, 10): WithArgsTypes: tuple[Any, ...] = (typing._GenericAlias, types.GenericAlias) # pyright: ignore[reportAttributeAccessIssue] else: