construct-typing/construct-stubs/lib/hex.pyi
Tim Rid ae440407e9 - renamed "TStructField" to "field" and "TUnionField" to "ufield". This makes the dataclass definitions shorter and more readable.
- removed "Opt" and "List" because they are not necessary any more, because covariant is now included for ParsedType.
- added test with typing.List as field
- fix: changed dict to typing.Dict
2021-03-16 18:51:04 +01:00

12 lines
261 B
Python

import typing as t
class HexDisplayedInteger(int): ...
class HexDisplayedBytes(bytes): ...
K = t.TypeVar("K")
V = t.TypeVar("V")
class HexDisplayedDict(t.Dict[K, V]): ...
class HexDumpDisplayedBytes(bytes): ...
class HexDumpDisplayedDict(t.Dict[K, V]): ...