Tim Rid
92b3555c50
removed _create_pseudo_member completely and integrated it into _missing_
2022-10-25 19:26:37 +02:00
Tim Rid
e10938f308
Added type hint to self type, for mypy support.
2022-10-24 00:07:57 +02:00
Tim Rid
2b780ae7b9
changed Adapter __new__ to __init__ to fix #13 . But this change on Adapter also reqires to change other Adapter subclasses.
2022-10-23 23:49:58 +02:00
Tim Rid
aeff7c6b7c
remove github actions deprecation warnings.
2022-10-23 23:03:40 +02:00
Tim Rid
a03190d816
fixed some pyright/pylance issues
2022-10-23 22:48:42 +02:00
Tim Rid
94896208b9
fixed mypy error: error: Returning Any from function declared to return "int"
2022-10-23 22:24:08 +02:00
Tim Rid
18597a05db
changed requirements to use the latest numpy, because numpy 1.23.* is not supporting Python 3.7.
2022-10-23 22:19:07 +02:00
Tim Rid
19fd0bf7f3
Fixed Error in Python 3.11: "_sunder_ names, such as '_create_pseudo_member_', are reserved for future Enum use"
2022-10-23 22:12:55 +02:00
Tim Rid
47fd2838f7
changed requirements for Python 3.11
2022-10-23 22:12:49 +02: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
timrid
8a450ec8bd
Update main.yml
...
added pyright to action
2021-05-23 16:35:11 +02:00
Tim Rid
2b5967e11d
fixing pyright issues
2021-05-23 16:22:40 +02:00
Tim Rid
22a0ed7f24
- updated documentation
...
- removed tunion completely
2021-05-23 15:28:27 +02:00
Tim Rid
5a39c51321
- renamed classes/methods/file:
...
- "tstruct.py" -> "dataclass_struct.py"
- "TStruct" -> "DataclassStruct"
- "TBitStruct" -> "DataclassBitStruct"
- "sfield" -> "csfield"
- "TContainerMixin" -> "DataclassMixin"
- extended documentation
2021-05-22 23:36:54 +02:00
Tim Rid
9666d132fd
added TBitStruct test
2021-05-22 21:51:24 +02:00
Tim Rid
a11132e67d
fixed mypy error
2021-05-22 17:45:45 +02:00
Tim Rid
48d50736b0
fixed error
2021-05-22 17:33:34 +02:00
Tim Rid
c9d6f58fd4
fixed mypy errors
2021-05-22 17:32:23 +02:00
Tim Rid
3811437219
fixed faild test
2021-05-22 17:22:04 +02:00
Tim Rid
a304977aca
- Revised TContainerMixin:
...
- removed inheritance of cs.Container (which removed the acces to dataclass objects via square brackets)
- copied __str__ from cs.Container with a few modifications
- Removed 'add_offsets' from TStruct
- Changed implementation of TBitStruct
2021-05-22 17:10:56 +02:00
Tim Rid
1f76b62580
added missing methods to stub file
2021-05-22 13:12:48 +02:00
Tim Rid
b43a4840ac
Fixed "encmapping" of "Enum". Every string can be used as key
2021-04-29 15:50:49 +02:00
Tim Rid
64731e4050
incremented version to 0.4.2
2021-04-13 21:35:32 +02:00
Tim Rid
976e68d4b9
values from "cs.Const" and "cs.Default" are now set as default value from the dataclass
2021-04-13 21:33:11 +02:00
Tim Rid
d092e48a68
fixed failing test case
2021-04-03 21:40:26 +02:00