- 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
12 lines
261 B
Python
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]): ...
|