From 566f2dcc4761ec8b82ec8b3de53acca4c857651c Mon Sep 17 00:00:00 2001 From: Eran Kampf Date: Mon, 8 Apr 2019 13:50:57 -0700 Subject: [PATCH] Line too long in code sample caused docs UI to overflow --- docs/types/enums.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/types/enums.rst b/docs/types/enums.rst index 4e019ee7..02cc267c 100644 --- a/docs/types/enums.rst +++ b/docs/types/enums.rst @@ -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