in confidence/confidence.py [0:0]
def type_matches(value: FieldType, value_type: Type[FieldType]) -> bool:
origin = get_origin(value_type)
if is_primitive(value_type):
return primitive_matches(value, value_type)
elif origin is list:
return isinstance(value, list)
elif origin is dict:
return isinstance(value, dict)
return False