1from __future__ import annotations 2 3import flatbuffers 4import numpy as np 5 6import flatbuffers 7import typing 8from MyGame.Example.NestedUnion.Test import Test 9 10uoffset: typing.TypeAlias = flatbuffers.number_types.UOffsetTFlags.py_type 11 12class Test(object): 13 @classmethod 14 def SizeOf(cls) -> int: ... 15 16 def Init(self, buf: bytes, pos: int) -> None: ... 17 def A(self) -> int: ... 18 def B(self) -> int: ... 19class TestT(object): 20 a: int 21 b: int 22 @classmethod 23 def InitFromBuf(cls, buf: bytes, pos: int) -> TestT: ... 24 @classmethod 25 def InitFromPackedBuf(cls, buf: bytes, pos: int = 0) -> TestT: ... 26 @classmethod 27 def InitFromObj(cls, test: Test) -> TestT: ... 28 def _UnPack(self, test: Test) -> None: ... 29 def Pack(self, builder: flatbuffers.Builder) -> None: ... 30 31def CreateTest(builder: flatbuffers.Builder, a: int, b: int) -> uoffset: ... 32 33