Skip to content

Commit

Permalink
Support pickle for TomlTz. Fix uiri#407
Browse files Browse the repository at this point in the history
  • Loading branch information
KosukeMizuno committed Jan 17, 2023
1 parent 59d83d0 commit 114d556
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions toml/tz.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ def __init__(self, toml_offset):
self._hours = int(self._raw_offset[1:3])
self._minutes = int(self._raw_offset[4:6])

def __getinitargs__(self):
return (self._raw_offset,)

def __deepcopy__(self, memo):
return self.__class__(self._raw_offset)

Expand Down

0 comments on commit 114d556

Please sign in to comment.