[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

@@ -6,7 +6,6 @@ import numpy as np
import flatbuffers
import typing
from MyGame.Example.NestedUnion.Any import Any
from MyGame.Example.NestedUnion.NestedUnionTest import NestedUnionTest
from MyGame.Example.NestedUnion.TestSimpleTableWithEnum import TestSimpleTableWithEnumT
from MyGame.Example.NestedUnion.Vec3 import Vec3T
from flatbuffers import table