diff --git a/src/betterproto/enum.py b/src/betterproto/enum.py index 52983225..5302d45c 100644 --- a/src/betterproto/enum.py +++ b/src/betterproto/enum.py @@ -156,6 +156,12 @@ def __delattr__(self, item: Any) -> Never: f"{self.__class__.__name__} Cannot delete a member's attributes." ) + def __copy__(self) -> Self: + return self + + def __deepcopy__(self, memo: Any) -> Self: + return self + @classmethod def try_value(cls, value: int = 0) -> Self: """Return the value which corresponds to the value.