Skip to content

Commit

Permalink
Fixed LiteralString support for python version 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
0keeper1 committed Aug 22, 2024
1 parent bc4f727 commit 2813838
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion panther/response.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2813838

Please sign in to comment.