[Python] Avoid include own type (#8625)

This prevents the include of the type defined in the pyi,
otherwise this leads to error message like this:
error: Name XYZ already defined (possibly by an import)  [no-redef]
This commit is contained in:
Felix
2025-07-15 20:20:09 +02:00
committed by GitHub
parent 4c9079e31b
commit c7b9dc83f5
12 changed files with 45 additions and 16 deletions

View File

@@ -5,7 +5,6 @@ import numpy as np
import flatbuffers
import typing
from MyGame.Example.NestedStruct import NestedStruct
from MyGame.Example.TestEnum import TestEnum
uoffset: typing.TypeAlias = flatbuffers.number_types.UOffsetTFlags.py_type