Skip to content
Snippets Groups Projects
Commit 74a93365 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

doc mention

parent 7f3483a8
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,10 @@ class ComparableEnum(enum.Enum):
>>> Enum.A == 'test'
>>> 'test' == Enum.A
Note, however, that following won't work:
>>> 'test' in (Enum.A, )
You can even compare enums across classes
>>> class A(ComparableEnum):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment