File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -269,13 +269,20 @@ Data Types
269269 >>> Color.RED.value
270270 1
271271
272+ Value of the member, can be set in :meth: `~object.__new__ `.
273+
272274 .. note :: Enum member values
273275
274276 Member values can be anything: :class: `int `, :class: `str `, etc. If
275277 the exact value is unimportant you may use :class: `auto ` instances and an
276278 appropriate value will be chosen for you. See :class: `auto ` for the
277279 details.
278280
281+ While mutable/unhashable values, such as :class: `dict `, :class: `list ` or
282+ a mutable :class: `~dataclasses.dataclass `, can be used, they will have a
283+ quadratic performance impact during creation relative to the
284+ total number of mutable/unhashable values in the enum.
285+
279286 .. attribute :: Enum._name_
280287
281288 Name of the member.
You can’t perform that action at this time.
0 commit comments