-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve support for open enums in generated pytnon
- previously generated tags x_START and x_END for tag ranges, but IntEnum declarations are closed so parsing a value in these ranges would fail - instead removed declaration for range bounds, and relax the generated code to use Union[IntEnum, int] instead of IntEnum - provide IntEnum.from_int to validate values to are not matched to tags, that they are correctly inside of the ranges
- Loading branch information
Showing
2 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters