Skip to content

Commit

Permalink
Line too long in code sample caused docs UI to overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ekampf committed Apr 8, 2019
1 parent 582ac59 commit 566f2dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/types/enums.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ you can add description etc. to your enum without changing the original:

.. code:: python
graphene.Enum.from_enum(AlreadyExistingPyEnum, description=lambda value: return 'foo' if value == AlreadyExistingPyEnum.Foo else 'bar')
graphene.Enum.from_enum(
AlreadyExistingPyEnum,
description=lambda v: return 'foo' if v == AlreadyExistingPyEnum.Foo else 'bar')
Notes
Expand Down

0 comments on commit 566f2dc

Please sign in to comment.