Skip to content

Commit

Permalink
Fix __reduce__ signature
Browse files Browse the repository at this point in the history
  • Loading branch information
cetanu committed Oct 13, 2023
1 parent aebb51d commit 3fe5c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/betterproto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ def __setstate__(self: T, pickled_bytes: bytes) -> T:
new.__post_init__()
return new

def __reduce__(self) -> str | tuple[Any, ...]:
def __reduce__(self) -> Union[str, Tuple[Any, ...]]:
return (self.__class__, (self.to_dict(),))

@classmethod
Expand Down

0 comments on commit 3fe5c50

Please sign in to comment.