flatbuffers/tests/MyGame/Example/NestedUnion
Felix dafd2f1f29
[Python] Render enums as Python IntEnum (#8145)
This allows enums to be type check with mypy.
They will still behave like ints ->
> IntEnum is the same as Enum,
> but its members are also integers and can be used anywhere
> that an integer can be used.
> If any integer operation is performed with an IntEnum member,
> the resulting value loses its enumeration status.
https://docs.python.org/3/library/enum.html#enum.IntEnum

Only if the --python-typing flag is set.
2024-06-03 08:39:14 -07:00
..
__init__.py
Any.py [Python] Render enums as Python IntEnum (#8145) 2024-06-03 08:39:14 -07:00
Any.pyi [Python] Generate .pyi stub files when --python-typing is on. (#8312) 2024-05-29 12:47:29 -07:00
Color.py
Color.pyi [Python] Generate .pyi stub files when --python-typing is on. (#8312) 2024-05-29 12:47:29 -07:00
NestedUnionTest.py Optionally generate Python type annotations (#7858) 2023-04-28 09:38:29 -07:00
NestedUnionTest.pyi [Python] Generate .pyi stub files when --python-typing is on. (#8312) 2024-05-29 12:47:29 -07:00
Test.py Optionally generate Python type annotations (#7858) 2023-04-28 09:38:29 -07:00
Test.pyi [Python] Generate .pyi stub files when --python-typing is on. (#8312) 2024-05-29 12:47:29 -07:00
TestSimpleTableWithEnum.py Optionally generate Python type annotations (#7858) 2023-04-28 09:38:29 -07:00
TestSimpleTableWithEnum.pyi [Python] Generate .pyi stub files when --python-typing is on. (#8312) 2024-05-29 12:47:29 -07:00
Vec3.py Fix python tests (#7960) 2023-05-17 13:10:51 -07:00
Vec3.pyi [Python] Generate .pyi stub files when --python-typing is on. (#8312) 2024-05-29 12:47:29 -07:00