diff --git a/panther/response.py b/panther/response.py index 432fc7f..11b3545 100644 --- a/panther/response.py +++ b/panther/response.py @@ -1,6 +1,15 @@ import asyncio +from sys import version_info from types import NoneType -from typing import Generator, AsyncGenerator, Any, LiteralString, Type +from typing import Generator, AsyncGenerator, Any, Type + +if version_info >= (3, 11): + from typing import LiteralString +else: + from typing import TypeVar + + LiteralString = TypeVar('LiteralString') + import orjson as json from pydantic import BaseModel