Skip to content

Enum._generate_next_value_ should be static #103056

Closed
@RomanSteinberg

Description

@RomanSteinberg

Bug report

Here and in two more places in the same file function _generate_next_value_ supposed to be called for instance. But it will not work properly in that case, because it behaves like static method. Consider staticmethod decorator.

As far as I understand there is no problem right now and all calls are correct. But in future it will be more robust if it would be static.

Linked PRs

Metadata

Metadata

Assignees

Labels

3.12only security fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions