Commit graph

80 commits

Author SHA1 Message Date
Tim Rid
3531a7e4cd - updated README.md and setup.py 2021-01-03 12:55:26 +01:00
Tim Rid
950538b43d updated README.md 2021-01-03 12:33:00 +01:00
Tim Rid
4c4bf74fd3 fixed some python 3.7 and numpy issues 2021-01-03 12:32:41 +01:00
Tim Rid
ed63f7fc93 Merge branch 'timrid-patch-1' of https://github.com/timrid/construct-typing into timrid-patch-1 2021-01-03 11:54:29 +01:00
Tim Rid
3d74c99718 fixed type error 2021-01-03 11:54:11 +01:00
timrid
f0f25822a0
Update main.yml 2021-01-02 23:45:46 +01:00
timrid
4940526cbc
Update main.yml 2021-01-02 23:41:02 +01:00
Tim Rid
753b2deaf3 Merge branch 'main' into timrid-patch-1 2021-01-02 23:37:25 +01:00
Tim Rid
a9d0cf0347 Merge branch 'timrid-patch-1' of https://github.com/timrid/construct-typing into timrid-patch-1 2021-01-02 23:36:33 +01:00
Tim Rid
f5a3565f3e added stubs for LazyStruct, LazyListContainer, LazyArray, LazyBound
fixed bug in test_typed.py
2021-01-02 23:35:45 +01:00
Tim Rid
a41e7fc1c0 updated README.md 2021-01-02 23:12:45 +01:00
Tim Rid
58837eaf41 updated README.md 2021-01-02 23:05:30 +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
timrid
354fdb094c
Update main.yml 2021-01-02 18:49:39 +01:00
timrid
13b2c280ea
Update main.yml 2021-01-02 18:46:07 +01:00
timrid
338eb21f0d
Update main.yml 2021-01-02 18:11:03 +01:00
Tim Rid
9c2908055c correction 2021-01-02 18:09:32 +01:00
timrid
21f5374007
created github workflow 2021-01-02 18:01:07 +01:00
Tim Rid
cd9188dc66 added requirements.txt 2021-01-02 17:57:07 +01:00
Tim Rid
aa453f29a7 fixed mypy and pytest errors 2021-01-02 17:54:52 +01:00
Tim Rid
a17f62bf0e modified README.md 2021-01-02 15:38:42 +01:00
Tim Rid
4dd145fadd extended README.md with TContainerBase 2021-01-02 14:51:16 +01:00
Tim Rid
ffe3211326 added "TContainerBase" 2021-01-02 14:49:34 +01:00
Tim Rid
7d22a9aff4 added TFlagsEnum to README.md 2021-01-02 12:02:29 +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
0a51f86183 slightly modified test_core.py so that mypy doesn't generate errors. 2021-01-01 22:56:53 +01:00
Tim Rid
fb38301189 fixed stub for NamedTuple 2021-01-01 22:55:48 +01:00
Tim Rid
0f597f643f added original tests from https://raw.githubusercontent.com/construct/construct/2626b398a676191114f6ce5d8db903e9590700db/tests/test_core.py 2021-01-01 22:06:19 +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
4aa3013a82 corrected and enhanced tests 2021-01-01 15:42:10 +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
ecb403b50b added value to Const and Default 2020-12-31 00:31:15 +01:00
Tim Rid
f024524b66 - replaces BufferType with typing.ByteString
- fixed stubs of Const
- changed __init__ to __new__ on ExprAdapter, ExprSymmetricAdapter, ExprValidator
2020-12-30 23:10:41 +01:00
Tim Rid
c0b0c7a3ab - added stubs for Tunnel, Compressed, Rebuffered
- added __getattr__ for Struct, Sequence, FocusedSeq, Union
2020-12-29 20:59:53 +01:00
Tim Rid
3e388ef1a6 added stubs for ProcessXor, ProcessRotateLeft, Checksum 2020-12-29 20:14:32 +01:00
Tim Rid
e357050dbe changed __init__ to __new__ of FlagsEnum 2020-12-29 19:11:03 +01:00
Tim Rid
5b6c312ba4 added stubs for OneOf, NoneOf, Filter, Slicing, Indexing 2020-12-29 17:43:32 +01:00
Tim Rid
06f37c3e1d - added missing variables to "Construct" class
- fixed __rtruediv__ of "Construct" class
2020-12-29 14:37:21 +01:00
Tim Rid
1b077ed18f - added stubs for stream access
- removed Optional from the "Context" class, and added comments instead
- added stub for Lazy
2020-12-29 14:13:24 +01:00