Skip to content

Commit

Permalink
Fix misplaced parenthesis (#3401)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
enoua5 committed Feb 28, 2024
1 parent 808d898 commit f33e456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/types/scalars.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
)


Expand Down

0 comments on commit f33e456

Please sign in to comment.