flatbuffers/tests/MyGame/Example/NestedUnion
Felix c15fe421ba
Use correct default type for str (#8623)
* [Python] Use correct type for str with None

Otherwise mypy will correctly flag code like this

def __init__(self):
  self.fooBar = None  # type: Optional[str]

error: Incompatible types in assignment (expression has type "None", variable has type "str")

* [Python] Make list type optional as they can contain None
2025-07-04 23:47:36 +00: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 Use correct default type for str (#8623) 2025-07-04 23:47:36 +00:00
NestedUnionTest.pyi [Python] Generate .pyi stub files when --python-typing is on. (#8312) 2024-05-29 12:47:29 -07:00
Test.py
Test.pyi [Python] Generate .pyi stub files when --python-typing is on. (#8312) 2024-05-29 12:47:29 -07:00
TestSimpleTableWithEnum.py
TestSimpleTableWithEnum.pyi [Python] Generate .pyi stub files when --python-typing is on. (#8312) 2024-05-29 12:47:29 -07:00
Vec3.py
Vec3.pyi [Python] Generate .pyi stub files when --python-typing is on. (#8312) 2024-05-29 12:47:29 -07:00