We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 582ac59 commit bcbb66cCopy full SHA for bcbb66c
docs/types/enums.rst
@@ -59,7 +59,9 @@ you can add description etc. to your enum without changing the original:
59
60
.. code:: python
61
62
- graphene.Enum.from_enum(AlreadyExistingPyEnum, description=lambda value: return 'foo' if value == AlreadyExistingPyEnum.Foo else 'bar')
+ graphene.Enum.from_enum(
63
+ AlreadyExistingPyEnum,
64
+ description=lambda v: return 'foo' if v == AlreadyExistingPyEnum.Foo else 'bar')
65
66
67
Notes
0 commit comments