Skip to content

Commit

Permalink
Fix pickle of EMPTY
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalioglu committed Aug 26, 2024
1 parent 2b3deda commit 1a17c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fairseq2/utils/dataclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class _EmptyType:
def __reduce__(self) -> str:
return _EmptyType.__name__
return "EMPTY"

def __copy__(self) -> Self:
return self
Expand Down

0 comments on commit 1a17c8a

Please sign in to comment.