Skip to content

Commit

Permalink
Incomplete state
Browse files Browse the repository at this point in the history
  • Loading branch information
mobiusklein committed Mar 28, 2024
1 parent f9f749d commit 9fdb44f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyteomics/proforma.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,8 @@ def __reduce__(self):
return self.__class__, (self.value, self.extra, self.group_id, self.style), self.__getstate__()

def __getstate__(self):
if self._definition is None:
return None
state = self._definition.copy()
state['source'] = None
return state
Expand Down

0 comments on commit 9fdb44f

Please sign in to comment.