Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/idl_gen_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ class PythonStubGenerator {
std::map<std::string, std::set<std::string>> names_by_module;
for (const Import &import : imports.imports) {
if (import.IsLocal()) continue; // skip all local imports
if (import.module == "flatbuffers" && import.name == "") continue; // skip double include hardcoded flatbuffers
if (import.name == "") {
modules.insert(import.module);
} else {
Expand Down
1 change: 0 additions & 1 deletion tests/MyGame/Example/ArrayStruct.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing
from MyGame.Example.NestedStruct import NestedStruct, NestedStructT
from MyGame.Example.TestEnum import TestEnum
Expand Down
1 change: 0 additions & 1 deletion tests/MyGame/Example/ArrayTable.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing
from MyGame.Example.ArrayStruct import ArrayStruct, ArrayStructT

Expand Down
1 change: 0 additions & 1 deletion tests/MyGame/Example/NestedStruct.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing
from MyGame.Example.TestEnum import TestEnum

Expand Down
1 change: 0 additions & 1 deletion tests/MyGame/Example/NestedUnion/Any.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing
from MyGame.Example.NestedUnion.TestSimpleTableWithEnum import TestSimpleTableWithEnum
from MyGame.Example.NestedUnion.Vec3 import Vec3
Expand Down
1 change: 0 additions & 1 deletion tests/MyGame/Example/NestedUnion/Color.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing
from typing import cast

Expand Down
1 change: 0 additions & 1 deletion tests/MyGame/Example/NestedUnion/NestedUnionTest.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing
from MyGame.Example.NestedUnion.Any import Any
from MyGame.Example.NestedUnion.TestSimpleTableWithEnum import TestSimpleTableWithEnumT
Expand Down
1 change: 0 additions & 1 deletion tests/MyGame/Example/NestedUnion/Test.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing

uoffset: typing.TypeAlias = flatbuffers.number_types.UOffsetTFlags.py_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing
from MyGame.Example.NestedUnion.Color import Color

Expand Down
1 change: 0 additions & 1 deletion tests/MyGame/Example/NestedUnion/Vec3.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing
from MyGame.Example.NestedUnion.Color import Color
from MyGame.Example.NestedUnion.Test import Test, TestT
Expand Down
1 change: 0 additions & 1 deletion tests/MyGame/Example/TestEnum.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing
from typing import cast

Expand Down
1 change: 0 additions & 1 deletion tests/MyGame/MonsterExtra.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import flatbuffers
import numpy as np

import flatbuffers
import typing

uoffset: typing.TypeAlias = flatbuffers.number_types.UOffsetTFlags.py_type
Expand Down
Loading