diff --git a/aiohttp_apischema/response.py b/aiohttp_apischema/response.py index 335d992..d443354 100644 --- a/aiohttp_apischema/response.py +++ b/aiohttp_apischema/response.py @@ -1,10 +1,16 @@ import json +import sys from concurrent.futures import Executor -from typing import Generic, Literal, TypeVar, overload +from typing import Generic, Literal, overload from aiohttp import web from aiohttp.typedefs import LooseHeaders +if sys.version_info >= (3, 13): + from typing import TypeVar +else: + from typing_extensions import TypeVar + _T = TypeVar("_T") _Status = TypeVar("_Status", bound=int, default=Literal[200])