Skip to content

Commit cc8606f

Browse files
committed
v32 - use typing_extensions for Self
1 parent 82ed87d commit cc8606f

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies = [
1111
"yarl",
1212
"httpx",
1313
"more-itertools",
14-
'typing_extensions; python_version<"3.10"',
14+
'typing_extensions; python_version<"3.12"',
1515
"jmespath",
1616
]
1717
requires-python = ">=3.10"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pyyaml==6.0.3
4343
# via aiopenapi3
4444
typing-extensions==4.15.0
4545
# via
46+
# aiopenapi3
4647
# anyio
4748
# exceptiongroup
4849
# multidict

src/aiopenapi3/v32/media.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
from typing import Any, Self
1+
import sys
2+
3+
if sys.version_info < (3, 12):
4+
from typing import Any
5+
from typing_extensions import Self
6+
else:
7+
from typing import Any, Self
28

39
from pydantic import Field
410

uv.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)