The ...Length and ...IsNone functions are constant for an array within a struct (which is kind of the point I think?) so the functions should be static in the py and pyi. These are located:
|
stub << " def " << name << "Length(self) -> int: ...\n"; |
|
stub << " def " << name << "IsNone(self) -> bool: ...\n"; |
|
void GetVectorLen(const StructDef& struct_def, const FieldDef& field, |
and
|
void GetVectorIsNone(const StructDef& struct_def, const FieldDef& field, |
The ...Length and ...IsNone functions are constant for an array within a struct (which is kind of the point I think?) so the functions should be static in the py and pyi. These are located:
flatbuffers/src/idl_gen_python.cpp
Lines 481 to 482 in bab1075
flatbuffers/src/idl_gen_python.cpp
Line 804 in bab1075
and
flatbuffers/src/idl_gen_python.cpp
Line 825 in bab1075