Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add betterproto.Enum __copy__ and __deepcopy__ implementations (#566)
* Add betterproto.Enum __copy__ and __deepcopy__ implementations betterproto.Enum is missing __copy__ and __deepcopy__ implementations, which were recently added to enum.Enum, see python/cpython#106602 This fixes the bug where betterproto messages with Enums nested within cannot be copied via copy.deepcopy. * Type hint on Enum.__copy__ Co-authored-by: James Hilton-Balfe <[email protected]> * Type hint on Enum.__deepcopy__ Co-authored-by: James Hilton-Balfe <[email protected]> --------- Co-authored-by: James Hilton-Balfe <[email protected]>
- Loading branch information