@@ -269,7 +269,7 @@ Data Types
269
269
>>> Color.RED.value
270
270
1
271
271
272
- Value of the member, can be set in :meth: `~object .__new__ `.
272
+ Value of the member, can be set in :meth: `~Enum .__new__ `.
273
273
274
274
.. note :: Enum member values
275
275
@@ -289,7 +289,7 @@ Data Types
289
289
290
290
.. attribute :: Enum._value_
291
291
292
- Value of the member, can be set in :meth: `~object .__new__ `.
292
+ Value of the member, can be set in :meth: `~Enum .__new__ `.
293
293
294
294
.. attribute :: Enum._order_
295
295
@@ -397,8 +397,8 @@ Data Types
397
397
398
398
results in the call ``int('1a', 16) `` and a value of ``17 `` for the member.
399
399
400
- ..note:: When writing a custom ``__new__ ``, do not use ``super().__new__ `` --
401
- call the appropriate ``__new__ `` instead.
400
+ .. note :: When writing a custom ``__new__``, do not use ``super().__new__`` --
401
+ call the appropriate ``__new__ `` instead.
402
402
403
403
.. method :: Enum.__repr__(self)
404
404
@@ -817,7 +817,7 @@ Supported ``__dunder__`` names
817
817
:attr: `~EnumType.__members__ ` is a read-only ordered mapping of ``member_name ``:``member ``
818
818
items. It is only available on the class.
819
819
820
- :meth: `~object .__new__ `, if specified, must create and return the enum members; it is
820
+ :meth: `~Enum .__new__ `, if specified, must create and return the enum members; it is
821
821
also a very good idea to set the member's :attr: `!_value_ ` appropriately. Once
822
822
all the members are created it is no longer used.
823
823
0 commit comments