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 authored Aug 21, 2023
1 parent 7ea8a32 commit e5f2095
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 e5f2095

Please sign in to comment.