diff --git a/cozepy/request.py b/cozepy/request.py index 04a4329..224e254 100644 --- a/cozepy/request.py +++ b/cozepy/request.py @@ -4,10 +4,10 @@ Optional, Union, List, - get_origin, get_args, Iterator, ) +from typing_extensions import get_origin # compatibility with python 3.7 import httpx from httpx import Response diff --git a/poetry.lock b/poetry.lock index 61b3369..7a0877a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -771,4 +771,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = "^3.7" -content-hash = "94e4a43332c76c62d6c6e68782964fe35384ca513857c7106d621b58cd8e720e" +content-hash = "d858b9316108a6fcf2e65e3abe8ed0d9766b258747f51a6e337c9b2860008828" diff --git a/pyproject.toml b/pyproject.toml index 26bc64f..9fa3d82 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,7 @@ python = "^3.7" pydantic = "^2.5.0" authlib = "^1.2.0" httpx = "^0.24.0" +typing-extensions = "^4.3.0" [tool.poetry.group.dev.dependencies] pytest = "^7.0.0"