Use typing_extensions.Self as fallback (fixes #902)

This commit is contained in:
ZipFile 2025-06-05 16:26:40 +00:00
parent 2293251986
commit f2da51e0d4
2 changed files with 8 additions and 2 deletions

View File

@ -17,7 +17,10 @@ from typing import (
overload,
)
from typing_extensions import Self as _Self
try:
from typing import Self as _Self
except ImportError:
from typing_extensions import Self as _Self
from .providers import Provider, ProviderParent, Self

View File

@ -25,7 +25,10 @@ from typing import (
cast,
)
from typing_extensions import Self
try:
from typing import Self
except ImportError:
from typing_extensions import Self
try:
from functools import cache