-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
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 dirDocumentation in the Doc dir