Skip to content

Commit

Permalink
Fix incorrect docstring for to_base64 Relay util (#3467)
Browse files Browse the repository at this point in the history
This commit fixes the docstring for the `to_base64` function in the
Relay utils module. The docstring incorrectly stated that the return
type was a tuple, but it is actually the base64 encoded global ID string
.
  • Loading branch information
gbannerman authored Apr 21, 2024
1 parent 79b440f commit dd8ef35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Release type: patch

This release fixes a minor issue where the docstring for the relay util `to_base64` described the return type incorrectly.
2 changes: 1 addition & 1 deletion strawberry/relay/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def to_base64(type_: Union[str, type, StrawberryObjectDefinition], node_id: Any)
The node id itself
Returns:
A tuple of (TypeName, NodeID).
A GlobalID, which is a string resulting from base64 encoding <TypeName>:<NodeID>.
Raises:
ValueError:
Expand Down

0 comments on commit dd8ef35

Please sign in to comment.