See commit https://github.com/boukeversteegh/python-betterproto/commit/71737cf696bbee0fad726427fe7df167202ea79a test case `oneof_enum`