Skip to content

Commit fa2f11d

Browse files
committed
refactor.typing: conditionally import Self for compatibility
- Remove direct import of Self from typing for Python versions < 3.11 - Keep the import from typing_extensions for older Python versions
1 parent 6e08da3 commit fa2f11d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redis_func_cache/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing import TypeGuard
1010

1111
if TYPE_CHECKING: # pragma: no cover
12-
from typing import Protocol, Self
12+
from typing import Protocol
1313

1414
if sys.version_info < (3, 11): # pragma: no cover
1515
from typing_extensions import Self

0 commit comments

Comments
 (0)