NeuroBench / device_tracker /__init__.py
okbasto2
fix: backport typing.Self for Python 3.10 runtime environments
68117ed
Raw History Blame Contribute Delete
403 Bytes
import typing
import typing_extensions
# Backport Python 3.11+ typing constructs for Python 3.10 runtime environments
for attr in ("Self", "TypeAlias", "LiteralString", "Never", "assert_never", "dataclass_transform", "override", "deprecated"):
if not hasattr(typing, attr) and hasattr(typing_extensions, attr):
setattr(typing, attr, getattr(typing_extensions, attr))
__version__ = "1.1.0"