Trim trailing whitespace
This commit is contained in:
parent
44b674e3a4
commit
cbd95cbb7b
|
@ -317,7 +317,7 @@ enumerations can have arbitrary values. The following example uses strings::
|
|||
>>> class SpecialId(Enum):
|
||||
... selector = '$IM($N)'
|
||||
... adaptor = '~$IM'
|
||||
...
|
||||
...
|
||||
>>> SpecialId.selector
|
||||
<EnumValue: SpecialId.selector [value=$IM($N)]>
|
||||
>>> SpecialId.selector.value
|
||||
|
@ -415,7 +415,7 @@ The ``Enum`` class is callable, providing the following convenience API::
|
|||
>>> Animals = Enum('Animals', 'ant bee cat dog')
|
||||
>>> Animals
|
||||
<Animals {ant: 1, bee: 2, cat: 3, dog: 4}>
|
||||
>>>
|
||||
>>>
|
||||
>>> Animals.ant
|
||||
<EnumValue: Animals.ant [value=1]>
|
||||
>>> Animals.ant.value
|
||||
|
|
Loading…
Reference in New Issue