Commit graph

181 commits

Author SHA1 Message Date
Tim Rid
af1a7799e9 make consistent namings in tests 2022-02-20 20:42:36 +01:00
Tim Rid
c5d08f9b87 add docstring to construct docs 2022-02-20 20:33:28 +01:00
Tim Rid
acc9f6a9e4 removed this_struct and added a lambda instead 2022-02-20 17:07:41 +01:00
Tim Rid
935f021a4f added a litte bit of documentation 2022-02-20 16:53:12 +01:00
Tim Rid
a46c180e7a Dont parse the provided subcon in csfield. Only check if it builds from none. But now you can use the const or default parameters instead to provied default or constant values. 2022-02-20 12:47:10 +01:00
Tim Rid
cab9a07c4f Use standard dataclasses modul for python >= 3.10 or use the provided dataclasses module from this library fol python < 3.10. So we can use the kw_only option. 2022-02-20 12:32:49 +01:00
Tim Rid
8529bd2878 ignore typing issues and removed unnessesary imports 2022-02-19 21:56:50 +01:00
Tim Rid
46fc3dd48c renamed file 2022-02-19 21:55:31 +01:00
Tim Rid
f9e2d24d71 Use marker instances from the original dataclass module so that hopefully also the original dataclass functions are working 2022-02-19 21:55:16 +01:00
Tim Rid
a0cadcce85 removed things that not work in Python 3.8 2022-02-19 21:54:04 +01:00
Tim Rid
b21c43ca65 added dataclass module from python 3.10 2022-02-19 21:27:52 +01:00
Tim Rid
75dbd8d822 fixed some mypy issues 2022-02-19 14:10:18 +01:00
Tim Rid
be5ae240fb renamed construct to constr so that there are no naming collisions with the construct package name 2022-02-19 12:46:28 +01:00
Tim Rid
94a8097bec added this_struct to public interface 2022-02-13 19:48:00 +01:00
Tim Rid
e99dd5d752 some renaming 2022-02-13 19:30:35 +01:00
Tim Rid
8525c04165 added custom _EnumMeta, because __init_subclass__ is not working correctly together with the standard enum.EnumMeta... 2022-02-13 19:29:56 +01:00
Tim Rid
7c68aeecd4 adapted all tests to the new api 2022-02-13 19:01:10 +01:00
Tim Rid
96ef565044 Merge branch 'main' into feature/new-structure 2022-02-13 17:03:38 +01:00
Tim Rid
de76415ac5 changed vscode test configuration to use the native testing api instead of the Test-Explorer 2022-02-13 17:02:46 +01:00
Tim Rid
9a9b4ab95a fixed type error 2022-02-13 17:00:28 +01:00
Tim Rid
8169f0ed31 Changed implementation of TEnum and TEnumFlags. 2022-02-13 16:58:54 +01:00
Tim Rid
b896457f90 Changed implementation of DataclassStruct. It is now only nessesary to sublcass DataclassStruct and not to combine it with @dataclasses.dataclass. Also now the DataclassConstruct is included in the DataclassStruct class type itself. 2022-02-13 16:32:30 +01:00
Tim Rid
753e4282ee renamed generic_wrapper.py to generic.py and removed relative imports 2022-02-13 16:13:11 +01:00
Tim Rid
db9b35a0c2 added Constructable Protocol 2022-02-13 16:04:27 +01:00
Tim Rid
834d244eda ignore mypy error "Call to untyped function "load" in typed context" 2022-02-13 01:14:01 +01:00
Tim Rid
5533a7923e fixed "potential security vulnerabilities" from github 2022-02-13 01:10:20 +01:00
Tim Rid
29d2608c37 fixed BuildTypes of cs.Const 2022-02-13 01:06:45 +01:00
timrid
e91bd27589
use settings from mypy.ini and also test the construct_typed folder 2022-01-09 12:51:34 +01:00
timrid
ba31334a33
Merge pull request #8 from Parnassius/pathlike
Use `os.PathLike` for file names
2022-01-09 12:48:27 +01:00
Tim Rid
375bab3faa Merge branch 'bugfix/mypy-unused-ignores' into main 2022-01-09 12:39:36 +01:00
Tim Rid
930fd9928c added mypy.ini: no error on unused ignores. mypy and pyright are slightly different, so pyright needs some ignores that mypy does not nee. 2022-01-09 12:30:57 +01:00
Parnassius
0979257dd7 Use os.PathLike for file names 2022-01-07 12:27:46 +01:00
Tim Rid
4c23eaa1b3 Revert "incremented version to 0.5.3"
This reverts commit 3b5a8af36f.
2021-10-23 13:07:06 +02:00
Tim Rid
3b5a8af36f incremented version to 0.5.3 2021-10-23 13:05:22 +02:00
timrid
7285fd17e4
Merge pull request #6 from kevinheavey/fix-packaging
fix setup.py
2021-10-23 13:01:38 +02:00
Tim Rid
a71b040847 fixed IfThenElse for pyright 2021-10-23 12:54:43 +02:00
kevinheavey
cc2410350d fix setup.py 2021-10-22 20:00:46 +01:00
Tim Rid
7c310cd771 incremented version to 0.5.2 2021-07-31 14:00:58 +02:00
Tim Rid
0e9fb3a497 added stub for evaluate 2021-07-31 13:59:48 +02:00
Tim Rid
e377951b8f fixed Switch.default 2021-07-31 13:59:32 +02:00
Tim Rid
3848db5b1a incremented version to 0.5.1 2021-07-19 20:51:31 +02:00
Tim Rid
cf068dca85 changed requirements.txt:
- mypy makes problems with stubs of numpy==1.21.*, so thate 1.20.* is used
- update to the latest construct version
2021-07-19 20:42:54 +02:00
Tim Rid
334e13c630 enhance cs.Checksum see #3 2021-07-19 20:41:41 +02:00
Tim Rid
e7516abf9e removed checkboxes, because they arent printable on pypi 2021-05-24 15:02:49 +02:00
Tim Rid
1c9925500b incremented version to 0.5.0 2021-05-24 14:43:00 +02:00
Tim Rid
7e226c2f80 added depenency to construct==2.10.67 2021-05-24 14:42:37 +02:00
Tim Rid
71fc81ad16 updated readme 2021-05-24 14:39:40 +02:00
Tim Rid
af7447f81b Merge branch 'feature/revise-tcontainermixin' of https://github.com/timrid/construct-typing into feature/revise-tcontainermixin 2021-05-23 16:41:43 +02:00
Tim Rid
d660d690fe pyright is now also supported 2021-05-23 16:41:28 +02:00
timrid
672fe1fd52
Update main.yml
fixed yml error
2021-05-23 16:36:39 +02:00