syntax = "proto2";

package mypy_protobuf;

import "google/protobuf/descriptor.proto";

extend google.protobuf.FieldOptions {
    // Tells mypy to use a specific newtype rather than the normal type for this field.
    optional string casttype = 60000;

    // Tells mypy to use a specific type for keys; only makes sense on map fields
    optional string keytype = 60002;
    // Tells mypy to use a specific type for values; only makes sense on map fields
    optional string valuetype = 60003;
}
