From f33e45647fd11b3a56395716e1755f41a8a46efe Mon Sep 17 00:00:00 2001 From: Jacob Allen Date: Wed, 28 Feb 2024 09:13:24 -0700 Subject: [PATCH] Fix misplaced parenthesis (#3401) The implementation given in the docs differs from the implementation actually used. The implementation currently shown in the docs raises an AttributeError when used. It appears that the docs were originally created with an extra stray close paren, and the wrong one was deleted when that was fixed. --- docs/types/scalars.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types/scalars.md b/docs/types/scalars.md index 9ce3e49e7e..b1d97f818d 100644 --- a/docs/types/scalars.md +++ b/docs/types/scalars.md @@ -113,7 +113,7 @@ import strawberry Base64 = strawberry.scalar( NewType("Base64", bytes), serialize=lambda v: base64.b64encode(v).decode("utf-8"), - parse_value=lambda v: base64.b64decode(v).encode("utf-8"), + parse_value=lambda v: base64.b64decode(v.encode("utf-8")), )