def key_value_types(kv):
  if isinstance(kv, TupleHint.TupleConstraint):
    return kv.tuple_types
  return Any, Any
Returns the key and value type of a KV type-hint.
dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/typehints/typehints.py/key_value_types