Skip to content

functional syntax for enum not implemented #574

Closed
@dlinnemeyer

Description

@dlinnemeyer

https://docs.python.org/3/library/enum.html#functional-api

I'm getting Too many arguments for "Enum" from mypy. I'm guessing it needs an __init__ function?

Not sure how this should be handled. It's dynamic, so I take it there's no real way to provide type safety for this syntax? But maybe something should be done to not throw an error when it is used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions