renamed generic_wrapper.py to generic.py and removed relative imports

This commit is contained in:
Tim Rid 2022-02-13 16:13:11 +01:00
parent db9b35a0c2
commit 753e4282ee
5 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
from .dataclass_struct import (
from construct_typed.dataclass_struct import (
DataclassBitStruct,
DataclassMixin,
DataclassStruct,
@ -10,7 +10,7 @@ from .dataclass_struct import (
csfield,
sfield,
)
from .generic_wrapper import (
from construct_typed.generic import (
Adapter,
ConstantOrContextLambda,
Construct,
@ -18,7 +18,7 @@ from .generic_wrapper import (
ListContainer,
PathType,
)
from .tenum import EnumBase, FlagsEnumBase, TEnum, TFlagsEnum
from construct_typed.tenum import EnumBase, FlagsEnumBase, TEnum, TFlagsEnum
__all__ = [
"DataclassBitStruct",

View file

@ -12,7 +12,7 @@ from construct.lib.containers import (
)
from construct.lib.py3compat import bytestringtype, reprstring, unicodestringtype
from .generic_wrapper import Adapter, Construct, Context, ParsedType, PathType
from construct_typed.generic import Adapter, Construct, Context, ParsedType, PathType
class DataclassMixin:
@ -269,4 +269,4 @@ TBitStruct = DataclassBitStruct
TContainerMixin = DataclassMixin
TContainerBase = DataclassMixin
TStructField = csfield
sfield = csfield
sfield = csfield

View file

@ -1,7 +1,7 @@
import enum
import typing as t
from .generic_wrapper import *
from construct_typed.generic import *
# ## TEnum ############################################################################################################

View file

@ -1,2 +1,2 @@
version = (0, 5, 2)
version_string = "0.5.2"
version_string = "0.5.2"