Skip to content

StrEnum. _generate_next_value_ in future/input #2531

@cdeil

Description

@cdeil

When I opened Arcade in PyCharm it flagged this as "improper first parameter":

https://github.com/pythonarcade/arcade/blame/cdd6f66aef330856a84446f8a34d176b7e66c2f5/arcade/future/input/inputs.py#L40

I'm not familiar with this, but in the Python std lib I see this:

https://docs.python.org/3/library/enum.html#enum.StrEnum

https://github.com/python/cpython/blob/0468ea12305ef5a0a3d1dc4af8a82fb94d202cd6/Lib/enum.py#L1377-L1382

Probably the current implementation of StrEnum in Arcade doesn't work, this has to be a staticmethod?

What to do? Remove the method? Copy over std lib implementation?

cc @Cleptomania

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions