Skip to content

Enum Docs does MultiplesOfThree instead of PowersOfThree #100174

Closed
@Beweeted

Description

@Beweeted

Documentation

Current:
The example includes a class PowersOfThree. Inside the function _generate_next_value_(), it executes return (count + 1) * 3 (Line 5), which is multiples of three instead of powers of three.

Expected:
Line 5 should be updated to: return 3 ** (count + 1), and the output on Line 9 should be updated to 9.
OR
Line 2 and Line 8 should be updated to MultiplesOfThree

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

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions