Commit graph

  • 486c553d65 fallback switch main wrapper 2026-04-07 23:28:33 +07:00
  • 0a4628935b add wrapper 2026-04-07 20:19:38 +07:00
  • c1896ab8dc Construct Error class does not return wrapper 2026-04-07 19:25:45 +07:00
  • 2f078b340b more switch fixes wrapper 2026-04-07 19:02:24 +07:00
  • 0c93e4d551 mod wrapper 2026-04-07 18:48:27 +07:00
  • e0fff05557
    Merge fa192c9d86 into f3b7bc342e Adam Rimon 2025-11-26 16:02:06 -05:00
  • f3b7bc342e incremented version to 0.7.0 v0.7.0 timrid 2025-10-27 20:18:53 +01:00
  • fddd438ac8 fix publish workflow timrid 2025-10-27 20:05:12 +01:00
  • fb3f0c926f
    Merge pull request #34 from timrid/feature/pyproject-toml timrid 2025-10-27 19:58:58 +01:00
  • 071038405c added trusted publishing infos feature/pyproject-toml timrid 2025-10-27 19:52:19 +01:00
  • a328767689 replaced setup.py with pyproject.toml Tim Rid 2025-10-27 19:33:50 +01:00
  • fe19de7b48
    Merge pull request #36 from Oli4/main timrid 2025-10-26 22:29:24 +01:00
  • c5ffc142be fix(core.pyi): replaces typing.TypeAlias by typing_extensions.TypeAlias for compatibility with python3.9 Olivier Morelle 2025-10-26 20:40:54 +01:00
  • 5c0ea2e827
    Merge pull request #33 from timrid/feature/update-to-construct-v2.10.70 timrid 2025-01-12 15:43:56 +01:00
  • a9f4b44801 fixed mypy errors Tim Rid 2025-01-12 15:39:57 +01:00
  • 04e1bc0c61 updated to construct==2.10.70 Tim Rid 2025-01-12 15:35:54 +01:00
  • ef933cc06d
    Merge pull request #30 from adamrimon/feature/inner_construct_methods timrid 2025-01-12 13:39:49 +01:00
  • 7107945a31
    Merge pull request #32 from timrid/feature/python_3.12_3.13 timrid 2025-01-12 13:09:03 +01:00
  • a222fe7695 print pyright version in CI Tim Rid 2025-01-12 13:01:00 +01:00
  • 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. Tim Rid 2025-01-12 12:43:04 +01:00
  • a2a6be536f satisfy pyright 1.1.391 Tim Rid 2025-01-12 12:33:51 +01:00
  • 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 Tim Rid 2025-01-12 12:22:45 +01:00
  • bbeb5b185f removed Python Versions with EOL (3.7, 3.8) Tim Rid 2025-01-12 11:58:33 +01:00
  • 647c273bff Added Python 3.12 and 3.13 to the CI Tim Rid 2025-01-12 11:52:00 +01:00
  • 9957b0e6f1
    added internal Construct methods, used when inheriting the class Prilkop 2024-06-17 15:46:04 +03:00
  • fa192c9d86
    Fixed Adapter._decode typehints Prilkop 2024-06-16 15:45:11 +03:00
  • a4985250d3
    Bump construct-typing to 2.10.70 in setup.py William Barnhart 2024-03-11 14:27:36 -04:00
  • 2ffa785ce6 incremented version to 0.6.2 v0.6.2 Tim Riddermann 2023-08-03 09:27:59 +02:00
  • c7e3fc7057 removed unnessasary __new__ methods in DataclassStruct, TEnum and TFlagsEnum Tim Riddermann 2023-08-03 09:22:33 +02:00
  • c405d09d5f fixed error message from EnumBase and FlagsEnumBase that occures since pyright v1.1.320 Tim Riddermann 2023-08-03 09:21:30 +02:00
  • af98d2004d incremented version to 0.6.1 v0.6.1 Tim Riddermann 2023-07-24 11:56:08 +02:00
  • 74593404b1 fixed missmatch between stub and runtime type for Array Tim Riddermann 2023-07-24 11:55:05 +02:00
  • af1a93c630 incremented version to 0.6.0 v0.6.0 Tim Riddermann 2023-07-24 11:02:39 +02:00
  • c04a90575d use PEP688 buffer protocol for "parse" Method (fixes #24) Tim Riddermann 2023-07-24 09:58:17 +02:00
  • c6bded59f4 fixes #25 Tim Riddermann 2023-07-24 10:56:37 +02:00
  • 86fddbe2ac simplified "IfThenElse" Tim Riddermann 2023-07-24 10:14:52 +02:00
  • 26f7fd82dc removed unnessesary comment Tim Riddermann 2023-07-24 10:14:33 +02:00
  • 86f27dc1fb use method-scoped TypeVars for __new__ (see here https://github.com/microsoft/pyright/issues/5404#issuecomment-1645764913) Tim Riddermann 2023-07-24 09:40:50 +02:00
  • ede1a72c70 added ignores, because 'Computed' is not subscriptable at runtime Tim Riddermann 2023-07-18 17:42:57 +02:00
  • d9026772a0 fixed further mypy issues Tim Riddermann 2023-07-18 17:39:10 +02:00
  • 825783db57 fixed mypy issues Tim Riddermann 2023-07-18 17:37:29 +02:00
  • e39fc5b19d corrected version requirements.txt Tim Riddermann 2023-07-18 17:36:54 +02:00
  • 3c81d99c12 Added __new__ only where it is an absolute must have. Tim Riddermann 2023-07-18 17:36:27 +02:00
  • f75029247f added missing definitions Tim Riddermann 2023-07-18 17:26:03 +02:00
  • 7f08ab2f28 added intermediate variable, so that pyright v1.1.316 passes Tim Riddermann 2023-07-18 17:25:21 +02:00
  • dd1691528f fixed pyright errors Tim Riddermann 2023-07-18 15:44:33 +02:00
  • 6b4a52e73a merged .py and .pyi Tim Riddermann 2023-07-18 15:38:40 +02:00
  • 1e7ced992d removed all self type annotations of __init__ methods Tim Riddermann 2023-07-18 15:38:01 +02:00
  • dcdeeca39f removed all __new__ methods. mypy v1.4.1 is working. Tim Riddermann 2023-06-30 14:13:01 +02:00
  • 6550e59dd3 added missing __new__ methods Tim Riddermann 2023-06-30 13:06:29 +02:00
  • 3b51654b1e incremented version to 0.5.6 v0.5.6 Tim Riddermann 2023-05-09 13:03:26 +02:00
  • 88f3109722
    Merge pull request #23 from timrid/bugfix/stream-type timrid 2023-05-09 13:00:06 +02:00
  • 2200a0a8d0 fixed mypy errors Tim Riddermann 2023-05-09 12:31:38 +02:00
  • bb3935e7eb fixes #19 Tim Riddermann 2023-05-09 12:27:46 +02:00
  • 4d07ed4cc6
    Merge pull request #22 from timrid/bugfix/pickel-enum-by-value timrid 2023-05-09 12:13:30 +02:00
  • a44ea84299 fixed mypy error Tim Riddermann 2023-05-09 11:47:10 +02:00
  • 6185a95e74 ignored typing error Tim Riddermann 2023-05-09 11:44:09 +02:00
  • d969fab1d3 fixed python 3.7 "TypeError: 'type' object is not subscriptable" Tim Riddermann 2023-05-09 11:31:18 +02:00
  • 3a676478ee fixed mypy issues Tim Riddermann 2023-05-09 11:27:19 +02:00
  • 50a2f34fc6 fixed mypy issue Tim Riddermann 2023-05-09 11:12:42 +02:00
  • ab33490dec Pickle enums by value instead of name (restores pre-3.11 behavior) to support dataclasses.asdict Tim Riddermann 2023-05-09 10:46:36 +02:00
  • acc3fa3443 incremented version to 0.5.5 v0.5.5 Tim Riddermann 2023-01-09 13:23:37 +01:00
  • bea99456d7 using __new__ instead of __init__ for EnumBase to create enum member objects (fixes #18) Tim Riddermann 2023-01-09 08:58:11 +01:00
  • 80b11b2ef9 added missing parts for cst.Array Tim Riddermann 2023-01-09 08:18:16 +01:00
  • 238ca5d2df removed not working __init__ Tim Riddermann 2023-01-06 12:05:14 +01:00
  • 232fcbd725 inserted missing asserts Tim Riddermann 2023-01-06 12:00:56 +01:00
  • 7f6577af47 added __init__ methods for all that currently only defined an __new__ method Tim Riddermann 2023-01-06 12:00:42 +01:00
  • b5add648ed fixed pyright 1.1.287 error Tim Riddermann 2023-01-06 10:45:55 +01:00
  • f98532a382 fixed _subconsindexes Tim Riddermann 2023-01-06 10:35:07 +01:00
  • 747bfaebd1 added generic wrapper for cs.Array Tim Riddermann 2023-01-06 10:32:44 +01:00
  • 31a10dcc88 added type hints for Struct._subcons, Sequence._subcons, FocusedSeq._subcons, Union._subcons, LazyStruct._subcons, LazyStruct._subconsindexes Tim Riddermann 2023-01-06 10:32:19 +01:00
  • ed5d0fe826 incremented version to 0.5.4 v0.5.4 Tim Rid 2022-12-24 12:20:03 +01:00
  • 916349f876 enhanced EnumBase and FlagsEnumBase to support induvidual documentation for each enum value via EnumValue Tim Rid 2022-12-24 12:00:23 +01:00
  • b7e92c3c7d removed mypy error 'Unused "type: ignore" comment' Tim Rid 2022-12-23 20:37:38 +01:00
  • 349c8e5dd2 Updated IfThenElse so that it represents the real implementation Tim Rid 2022-12-23 20:37:05 +01:00
  • ceb4b67ff8 incremented version to 0.5.3 v0.5.3 Tim Rid 2022-10-31 10:06:15 +01:00
  • f3051a1116 upgrade requirement to construct==2.10.68 Tim Rid 2022-10-31 09:54:50 +01:00
  • 25883cb7c8 Updated settings.json Tim Rid 2022-10-31 09:54:15 +01:00
  • ce871936d9 Added Python 3.10 and 3.11 to the Test-Matrix and removed github warning "Node.js 12 actions are deprecated." Tim Rid 2022-10-25 20:49:07 +02:00
  • 92b3555c50 removed _create_pseudo_member completely and integrated it into _missing_ Tim Rid 2022-10-25 19:26:37 +02:00
  • e10938f308 Added type hint to self type, for mypy support. Tim Rid 2022-10-24 00:07:57 +02:00
  • 2b780ae7b9 changed Adapter __new__ to __init__ to fix #13. But this change on Adapter also reqires to change other Adapter subclasses. Tim Rid 2022-10-23 23:49:58 +02:00
  • aeff7c6b7c remove github actions deprecation warnings. Tim Rid 2022-10-23 23:03:40 +02:00
  • a03190d816 fixed some pyright/pylance issues Tim Rid 2022-10-23 22:48:42 +02:00
  • 94896208b9 fixed mypy error: error: Returning Any from function declared to return "int" Tim Rid 2022-10-23 22:24:08 +02:00
  • 18597a05db changed requirements to use the latest numpy, because numpy 1.23.* is not supporting Python 3.7. Tim Rid 2022-10-23 22:19:07 +02:00
  • 19fd0bf7f3 Fixed Error in Python 3.11: "_sunder_ names, such as '_create_pseudo_member_', are reserved for future Enum use" Tim Rid 2022-10-23 22:12:55 +02:00
  • 47fd2838f7 changed requirements for Python 3.11 Tim Rid 2022-10-23 22:12:49 +02:00
  • 14a10ebfc5
    In csfield, force cs.Default to appear as init ‮nerB‭‮ taraM‭ 2022-04-30 22:04:54 +01:00
  • e730fd8d87 use a special MISSING enum, because typing.Literal only accepts enums feature/py310-dataclass Tim Rid 2022-02-20 21:14:05 +01:00
  • af1a7799e9 make consistent namings in tests Tim Rid 2022-02-20 20:42:36 +01:00
  • c5d08f9b87 add docstring to construct docs Tim Rid 2022-02-20 20:33:28 +01:00
  • acc9f6a9e4 removed this_struct and added a lambda instead Tim Rid 2022-02-20 17:07:41 +01:00
  • 935f021a4f added a litte bit of documentation Tim Rid 2022-02-20 16:53:12 +01:00
  • 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. Tim Rid 2022-02-20 12:47:10 +01:00
  • 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. Tim Rid 2022-02-20 12:32:49 +01:00
  • 8529bd2878 ignore typing issues and removed unnessesary imports Tim Rid 2022-02-19 21:56:50 +01:00
  • 46fc3dd48c renamed file Tim Rid 2022-02-19 21:55:31 +01:00
  • f9e2d24d71 Use marker instances from the original dataclass module so that hopefully also the original dataclass functions are working Tim Rid 2022-02-19 21:55:16 +01:00
  • a0cadcce85 removed things that not work in Python 3.8 Tim Rid 2022-02-19 21:54:04 +01:00