shorten name and removed name conflicts with the normal construct package
This commit is contained in:
parent
764102a80a
commit
7b91810e71
2 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ from .generic_wrapper import (
|
|||
from .tenum import EnumBase, FlagsEnumBase, TEnum, TFlagsEnum
|
||||
from .tstruct import TBitStruct, TStruct, TStructField, TContainerBase
|
||||
from .tunion import TUnion, TUnionField
|
||||
from .helper import List, Optional
|
||||
from .helper import List, Opt
|
||||
|
||||
__all__ = [
|
||||
"TStructField",
|
||||
|
|
@ -28,6 +28,6 @@ __all__ = [
|
|||
"PathType",
|
||||
"TFlagsEnum",
|
||||
"FlagsEnumBase",
|
||||
"Optional",
|
||||
"Opt",
|
||||
"List"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import typing as t
|
|||
|
||||
from .generic_wrapper import ListContainer
|
||||
|
||||
OptionalType = t.TypeVar("OptionalType")
|
||||
OptType = t.TypeVar("OptType")
|
||||
ListType = t.TypeVar("ListType")
|
||||
|
||||
Optional = t.Optional[OptionalType]
|
||||
Opt = t.Optional[OptType]
|
||||
List = t.Union[ListContainer[ListType], t.List[ListType]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue