def generate_metric_type()

in glean_parser/python_server.py [0:0]


def generate_metric_type(metric_type: str) -> str:
    if metric_type == "quantity":
        return "int"
    elif metric_type == "string":
        return "str"
    elif metric_type == "boolean":
        return "bool"
    else:
        print("❌ Unable to generate Python type from metric type: " + metric_type)
        exit
        return "NONE"