Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "runtime-keypath"
version = "0.1.6"
version = "0.1.7"
authors = [{ name = "Chris Fu", email = "17433201@qq.com" }]
description = "Supports runtime key-path recording/accessing for Python."
classifiers = [
Expand Down
14 changes: 10 additions & 4 deletions runtime_keypath/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,26 @@

import threading
from collections.abc import Sequence

from typing_extensions import (
from typing import (
TYPE_CHECKING,
Any,
Final,
Generic,
Protocol,
TypeVar,
cast,
deprecated,
final,
override,
)

try:
from typing_extensions import deprecated, override
except ImportError:
if TYPE_CHECKING:
assert False
else:
deprecated = lambda *args, **kwargs: lambda x: x
override = lambda x: x

_T = TypeVar("_T")

_Value_co = TypeVar("_Value_co", covariant=True)
Expand Down
Loading