Skip to content

Python gen for array within struct not set to staticmethod for length/isnone #9069

@dshekter

Description

@dshekter

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions