Currently, the NewType('MyEnumValue', int) only exists within mypy stubs, but not in the original python code generated by protoc.
This results in ugly callsites like
from proto.mylib import MyEnum
MYPY = False
if MYPY:
from proto.mylib. import MyEnumValue
If we can upstream to protoc a simple line
Then, the callsites can use mypy-protobuf more smoothly by doing
from proto.mylib import MyEnum, MyEnumValue