Skip to content

Commit

Permalink
Improve readability within Message.parse
Browse files Browse the repository at this point in the history
Co-authored-by: James Hilton-Balfe <[email protected]>
  • Loading branch information
JoshuaLeivers and Gobot1234 committed Aug 21, 2023
1 parent e1fc48a commit 9757f86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/betterproto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,9 +1327,7 @@ def parse(self: T, data: bytes) -> T:
The initialized message.
"""
with BytesIO(data) as stream:
self.load(stream)

return self
return self.load(stream)

# For compatibility with other libraries.
@classmethod
Expand Down

0 comments on commit 9757f86

Please sign in to comment.