Commit graph

211 commits

Author SHA1 Message Date
Tim Riddermann
c6bded59f4 fixes #25 2023-07-24 10:56:37 +02:00
Tim Riddermann
86fddbe2ac simplified "IfThenElse" 2023-07-24 10:36:28 +02:00
Tim Riddermann
26f7fd82dc removed unnessesary comment 2023-07-24 10:14:33 +02:00
Tim Riddermann
86f27dc1fb use method-scoped TypeVars for __new__ (see here https://github.com/microsoft/pyright/issues/5404#issuecomment-1645764913) 2023-07-24 09:40:50 +02:00
Tim Riddermann
ede1a72c70 added ignores, because 'Computed' is not subscriptable at runtime 2023-07-18 17:42:57 +02:00
Tim Riddermann
d9026772a0 fixed further mypy issues 2023-07-18 17:39:10 +02:00
Tim Riddermann
825783db57 fixed mypy issues 2023-07-18 17:37:29 +02:00
Tim Riddermann
e39fc5b19d corrected version requirements.txt 2023-07-18 17:36:54 +02:00
Tim Riddermann
3c81d99c12 Added __new__ only where it is an absolute must have. 2023-07-18 17:36:27 +02:00
Tim Riddermann
f75029247f added missing definitions 2023-07-18 17:26:03 +02:00
Tim Riddermann
7f08ab2f28 added intermediate variable, so that pyright v1.1.316 passes 2023-07-18 17:25:21 +02:00
Tim Riddermann
dd1691528f fixed pyright errors 2023-07-18 15:46:17 +02:00
Tim Riddermann
6b4a52e73a merged .py and .pyi 2023-07-18 15:44:17 +02:00
Tim Riddermann
1e7ced992d removed all self type annotations of __init__ methods 2023-07-18 15:38:01 +02:00
Tim Riddermann
dcdeeca39f removed all __new__ methods. mypy v1.4.1 is working. 2023-06-30 14:13:01 +02:00
Tim Riddermann
6550e59dd3 added missing __new__ methods 2023-06-30 13:06:29 +02:00
Tim Riddermann
3b51654b1e incremented version to 0.5.6 2023-05-09 13:03:26 +02:00
timrid
88f3109722
Merge pull request #23 from timrid/bugfix/stream-type
Bugfix/stream type
2023-05-09 13:00:06 +02:00
Tim Riddermann
2200a0a8d0 fixed mypy errors 2023-05-09 12:31:38 +02:00
Tim Riddermann
bb3935e7eb fixes #19 2023-05-09 12:27:46 +02:00
timrid
4d07ed4cc6
Merge pull request #22 from timrid/bugfix/pickel-enum-by-value
Pickle enums by value instead of name (restores pre-3.11 behavior) to support `dataclasses.asdict`
2023-05-09 12:13:30 +02:00
Tim Riddermann
a44ea84299 fixed mypy error 2023-05-09 11:47:10 +02:00
Tim Riddermann
6185a95e74 ignored typing error 2023-05-09 11:44:09 +02:00
Tim Riddermann
d969fab1d3 fixed python 3.7 "TypeError: 'type' object is not subscriptable" 2023-05-09 11:31:18 +02:00
Tim Riddermann
3a676478ee fixed mypy issues 2023-05-09 11:27:19 +02:00
Tim Riddermann
50a2f34fc6 fixed mypy issue 2023-05-09 11:12:42 +02:00
Tim Riddermann
ab33490dec Pickle enums by value instead of name (restores pre-3.11 behavior) to support dataclasses.asdict 2023-05-09 10:52:18 +02:00
Tim Riddermann
acc3fa3443 incremented version to 0.5.5 2023-01-09 13:23:37 +01:00
Tim Riddermann
bea99456d7 using __new__ instead of __init__ for EnumBase to create enum member objects (fixes #18) 2023-01-09 09:02:33 +01:00
Tim Riddermann
80b11b2ef9 added missing parts for cst.Array 2023-01-09 08:18:16 +01:00
Tim Riddermann
238ca5d2df removed not working __init__ 2023-01-06 12:05:14 +01:00
Tim Riddermann
232fcbd725 inserted missing asserts 2023-01-06 12:00:56 +01:00
Tim Riddermann
7f6577af47 added __init__ methods for all that currently only defined an __new__ method 2023-01-06 12:00:42 +01:00
Tim Riddermann
b5add648ed fixed pyright 1.1.287 error 2023-01-06 10:45:55 +01:00
Tim Riddermann
f98532a382 fixed _subconsindexes 2023-01-06 10:35:07 +01:00
Tim Riddermann
747bfaebd1 added generic wrapper for cs.Array 2023-01-06 10:32:44 +01:00
Tim Riddermann
31a10dcc88 added type hints for Struct._subcons, Sequence._subcons, FocusedSeq._subcons, Union._subcons, LazyStruct._subcons, LazyStruct._subconsindexes 2023-01-06 10:32:19 +01:00
Tim Rid
ed5d0fe826 incremented version to 0.5.4 2022-12-24 12:20:03 +01:00
Tim Rid
916349f876 enhanced EnumBase and FlagsEnumBase to support induvidual documentation for each enum value via EnumValue 2022-12-24 12:04:45 +01:00
Tim Rid
b7e92c3c7d removed mypy error 'Unused "type: ignore" comment' 2022-12-23 20:48:05 +01:00
Tim Rid
349c8e5dd2 Updated IfThenElse so that it represents the real implementation 2022-12-23 20:37:05 +01:00
Tim Rid
ceb4b67ff8 incremented version to 0.5.3 2022-10-31 10:06:15 +01:00
Tim Rid
f3051a1116 upgrade requirement to construct==2.10.68 2022-10-31 09:54:50 +01:00
Tim Rid
25883cb7c8 Updated settings.json 2022-10-31 09:54:15 +01:00
Tim Rid
ce871936d9 Added Python 3.10 and 3.11 to the Test-Matrix and removed github warning "Node.js 12 actions are deprecated." 2022-10-25 20:49:07 +02:00
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