@@ -279,7 +279,7 @@ Data Types
279
279
>>> Color.RED.value
280
280
1
281
281
282
- Value of the member, can be set in :meth: `~object .__new__ `.
282
+ Value of the member, can be set in :meth: `~Enum .__new__ `.
283
283
284
284
.. note :: Enum member values
285
285
@@ -299,7 +299,7 @@ Data Types
299
299
300
300
.. attribute :: Enum._value_
301
301
302
- Value of the member, can be set in :meth: `~object .__new__ `.
302
+ Value of the member, can be set in :meth: `~Enum .__new__ `.
303
303
304
304
.. attribute :: Enum._order_
305
305
@@ -407,8 +407,8 @@ Data Types
407
407
408
408
results in the call ``int('1a', 16) `` and a value of ``17 `` for the member.
409
409
410
- ..note:: When writing a custom ``__new__ ``, do not use ``super().__new__ `` --
411
- call the appropriate ``__new__ `` instead.
410
+ .. note :: When writing a custom ``__new__``, do not use ``super().__new__`` --
411
+ call the appropriate ``__new__ `` instead.
412
412
413
413
.. method :: Enum.__repr__(self)
414
414
@@ -827,7 +827,7 @@ Supported ``__dunder__`` names
827
827
:attr: `~EnumType.__members__ ` is a read-only ordered mapping of ``member_name ``:``member ``
828
828
items. It is only available on the class.
829
829
830
- :meth: `~object .__new__ `, if specified, must create and return the enum members;
830
+ :meth: `~Enum .__new__ `, if specified, must create and return the enum members;
831
831
it is also a very good idea to set the member's :attr: `!_value_ ` appropriately.
832
832
Once all the members are created it is no longer used.
833
833
0 commit comments