sobolevn
sobolevn
I hope that some generic solution for `@immutable` type decorator can be created. What I need? I need to make `mypy` treat some types as immutable (they can still be...
Currently you have to sync types with some contants manually. I would like to copy TypeScript's type `typeof` operator. ```python VALUE = (1, 2, 'a') # has type: Tuple[Literal[1], Literal[2]...
We don't support `__getattr__` method at the moment. But, we need to! There are also cases when `__getattr__` can possibly be `@overload`ed. So, we need to decide what to do...
`Key` must be a strict key of a given `dict`. For `TypedDict` it will fetch the exact type, for regular `Dict` it will return just a value type.
This will return a union of all literal attribute names.