It seems mypy-protobuf forgets its a map/repeated and just generates the type directly instead of just the container. Note I tested with legacy extensions but I'm relatively sure from code reading that both are affected.