def type_name(value):
    return "struct" if isinstance(value, dict) else \
        "sequence" if isinstance(value, (tuple, list)) else \
        type(value).__name__
Returns the key and value type of a KV type-hint.
dataset/ETHPy150Open 0k/shyaml/shyaml.py/type_name--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/typehints/typehints.py/key_value_types