Commit graph

228 commits

Author SHA1 Message Date
Tim Rid
04e1bc0c61 updated to construct==2.10.70 2025-01-12 15:35:54 +01:00
timrid
ef933cc06d
Merge pull request #30 from adamrimon/feature/inner_construct_methods
Internal Construct methods
2025-01-12 13:39:49 +01:00
timrid
7107945a31
Merge pull request #32 from timrid/feature/python_3.12_3.13
Added Python 3.12 & 3.13 and removed EOL Python 3.7 & 3.8
2025-01-12 13:09:03 +01:00
Tim Rid
a222fe7695 print pyright version in CI 2025-01-12 13:01:00 +01:00
Tim Rid
f01246ae82 Since Python 3.13 the compiler now strips common leading whitespace from every line in a docstring. So this have to be fixed in the pytests. 2025-01-12 12:46:05 +01:00
Tim Rid
a2a6be536f satisfy pyright 1.1.391 2025-01-12 12:33:51 +01:00
Tim Rid
457857389a According to PEP688 (https://peps.python.org/pep-0688/#removal-of-the-bytes-special-case) bytes has not any special meaning any more. So bytearray is not included in bytes any more and we have to declare it explicitly. collections.abc.Buffer cant be used, because memoryview is not supported by construct 2025-01-12 12:22:45 +01:00
Tim Rid
bbeb5b185f removed Python Versions with EOL (3.7, 3.8) 2025-01-12 11:58:33 +01:00
Tim Rid
647c273bff Added Python 3.12 and 3.13 to the CI 2025-01-12 11:53:03 +01:00
Prilkop
9957b0e6f1
added internal Construct methods, used when inheriting the class 2024-06-17 15:46:04 +03:00
Tim Riddermann
2ffa785ce6 incremented version to 0.6.2 2023-08-03 09:27:59 +02:00
Tim Riddermann
c7e3fc7057 removed unnessasary __new__ methods in DataclassStruct, TEnum and TFlagsEnum 2023-08-03 09:22:33 +02:00
Tim Riddermann
c405d09d5f fixed error message from EnumBase and FlagsEnumBase that occures since pyright v1.1.320 2023-08-03 09:21:30 +02:00
Tim Riddermann
af98d2004d incremented version to 0.6.1 2023-07-24 11:56:08 +02:00
Tim Riddermann
74593404b1 fixed missmatch between stub and runtime type for Array 2023-07-24 11:55:44 +02:00
Tim Riddermann
af1a93c630 incremented version to 0.6.0 2023-07-24 11:02:39 +02:00
Tim Riddermann
c04a90575d use PEP688 buffer protocol for "parse" Method (fixes #24) 2023-07-24 10:57:50 +02:00
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