Skip to content

Commit bcbb66c

Browse files
authored
Line too long in code sample caused docs UI to overflow (#938)
1 parent 582ac59 commit bcbb66c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/types/enums.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ you can add description etc. to your enum without changing the original:
5959

6060
.. code:: python
6161
62-
graphene.Enum.from_enum(AlreadyExistingPyEnum, description=lambda value: return 'foo' if value == AlreadyExistingPyEnum.Foo else 'bar')
62+
graphene.Enum.from_enum(
63+
AlreadyExistingPyEnum,
64+
description=lambda v: return 'foo' if v == AlreadyExistingPyEnum.Foo else 'bar')
6365
6466
6567
Notes

0 commit comments

Comments
 (0)