1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00
trezor-firmware/core/src/typing.py

22 lines
396 B
Python
Raw Normal View History

TYPE_CHECKING = False
class _GenericTypingObject:
def __init__(self, *args, **kwargs):
pass
def __getattr__(self, key):
# property access: P.kwargs
return object
def __getitem__(self, key):
# dict-like access: Generic[T], Generic[K, V]
return self
_TYPING_OBJECT = _GenericTypingObject()
def __getattr__(key):
return _TYPING_OBJECT