Skip to content

Protocol on update_states #32

@hanson-hschang

Description

@hanson-hschang

@skim0119

Is the current protocol on update_states good?

def update_states(self, *args: Any) -> None:
"""Updates the mesh object with the given states."""

Will it be better to change *args to **kwargs? Since the states might be different for different objects?

I have the following protocol on update_material:

def update_material(self, **kwargs: dict[str, Any]) -> None:
"""Updates the material of the mesh object."""

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions