Skip to content

Commit

Permalink
Merge pull request #817 from ChenYFan/patch-1
Browse files Browse the repository at this point in the history
fix #799 in python 3.10 ubuntu 22.04
  • Loading branch information
zyddnys authored Jan 5, 2025
2 parents 7b7c7e0 + 7ce6289 commit 5c93d50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manga_translator/utils/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ def __delattr__(self, key) -> None:
def __setattr__(self, key, value):
return self.__setitem__(key, value)

def __getstate__(self):
return self.copy()

def __setstate__(self, state):
self.update(state)

def __eq__(self, other):
if not isinstance(other, Context):
return NotImplemented
Expand Down

0 comments on commit 5c93d50

Please sign in to comment.