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
Tim Rid
084c39a1ff
removed unused type ignore
2021-03-13 17:54:06 +01:00
Tim Rid
d0a31458a8
added covariant and contravariant from PR #1
2021-03-13 17:49:03 +01:00
Tim Rid
b6016554cc
adapted the "TContainerBase" to the "TContainer" of construct v2.10.61 based on an OrderedDict
2021-02-21 00:13:45 +01:00
Tim Rid
246a7d3910
added two offsets for each element
2021-02-20 22:11:10 +01:00
Tim Rid
57d843171e
added __getattr__ to TStruct
2021-02-20 21:50:50 +01:00
Tim Rid
a4741e2bf2
new setting in TStruct: "add_offsets"
2021-02-20 21:42:39 +01:00
Tim Rid
e902748656
removed unused 'type: ignore'
2021-01-24 17:59:37 +01:00
Tim Rid
8be150b090
adding also values that are not part of the dataclass to the "TContainer" while parsing
2021-01-24 17:49:39 +01:00
Tim Rid
419353c712
strip trailing new lines in documentation
2021-01-10 13:33:02 +01:00
Tim Rid
6900b37acd
fixed things that are complained by pyright
2021-01-10 13:31:56 +01:00
Tim Rid
c0bd93d680
removed unnessesary file
2021-01-03 13:34:47 +01:00
Tim Rid
7b91810e71
shorten name and removed name conflicts with the normal construct package
2021-01-02 23:04:19 +01:00
Tim Rid
764102a80a
Removed TArray. Instead created TypeAlias "List".
2021-01-02 22:38:18 +01:00
Tim Rid
8ed38ddb5a
fix
2021-01-02 21:36:02 +01:00
Tim Rid
95f00eeeb7
TContainerBase optimisation
2021-01-02 21:35:28 +01:00
Tim Rid
f3a2fd94d0
fixed some mypy issues
2021-01-02 21:31:26 +01:00
Tim Rid
aa453f29a7
fixed mypy and pytest errors
2021-01-02 17:54:52 +01:00
Tim Rid
ffe3211326
added "TContainerBase"
2021-01-02 14:49:34 +01:00
Tim Rid
ac8800943a
Added "TFlagsEnum" and "FlagsEnumBase"
2021-01-02 12:01:20 +01:00
Tim Rid
def9e93da7
- enhanced TEnum
...
- added EnumBase
- extended README.md
2021-01-02 01:12:04 +01:00
Tim Rid
74a5082c7f
run black and isort
2021-01-01 23:46:43 +01:00
Tim Rid
944cf85797
- added tests "test_tstruct_default_field" and "test_tstruct_const_field"
...
- added setattrs
2021-01-01 17:26:40 +01:00
Tim Rid
8c8154aaa0
satisfy mypy
2021-01-01 15:41:36 +01:00
Tim Rid
11a2e02210
enforce correct types
2021-01-01 15:40:46 +01:00
Tim Rid
865d73a292
- renamed StructField to TStructField
...
- renamed UnionField to TUnionField
2021-01-01 13:58:55 +01:00
Tim Rid
ede0840a0b
Fixed TStruct in TArray
2021-01-01 13:55:19 +01:00
Tim Rid
e6f3f12d30
- divided construct_typed in multiple files
...
- adapted the "test_typed.py" to dataclasses
2020-12-31 17:11:21 +01:00
Tim Rid
aff5c0589b
rework of construct_typed to dataclasses
2020-12-31 00:31:44 +01:00
Tim Rid
12d94f89e4
fixed swapped param of TypedStruct, to keep the order of the sucons in a container when printing
...
added TypedBitStruct
2020-12-16 21:39:45 +01:00
Tim Rid
1874061446
Removed some alternative Solutions for Struct.
...
added stubs for Renamed
2020-12-13 14:29:30 +01:00
Tim Rid
8922c5eccc
put a prefix before every object of "typing", because there are a few duplications, e.g. Union and Optional.
...
added stubs for Select, Optional, If, IfThenElse
2020-12-12 13:17:27 +01:00
Tim Rid
a564ff55fd
a TypedStruct is always parsed to an object of the container_type
2020-12-12 12:12:54 +01:00
Tim Rid
29f6af7936
added stubs for py3compat.py
...
added stubs for debug.py
core: fixed Enum + EnumFlag, renamed ContextCallable to ContextLambda
2020-12-10 21:57:31 +01:00
Tim Rid
209314db4a
added README.md
...
added more (mostly empty) stub files
added setup.py
added construct_typed initial version
added initial tests
2020-12-10 20:26:37 +01:00