mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-06-16 11:33:13 +03:00
Use typing_extensions.Self as fallback (fixes #902)
This commit is contained in:
parent
2293251986
commit
f2da51e0d4
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user