python_modules/dagster/dagster/check/__init__.py
def dict_param(obj, param_name, key_type=None, value_type=None):
    '''Ensures argument obj is a native Python dictionary, raises an exception if not, and otherwise
    returns obj.
    '''
    if not isinstance(obj, dict):
        raise_with_traceback(_param_type_mismatch_exception(obj, dict, param_name))

    if not (key_type or value_type):
        return obj

    return _check_key_value_types(obj, key_type, value_type)
def dict_param(obj, param_name, key_type=None, value_type=None):
    '''Ensures argument obj is a native Python dictionary, raises an exception if not, and otherwise
    returns obj.
    '''
    if not isinstance(obj, dict):
        raise_with_traceback(_param_type_mismatch_exception(obj, dict, param_name))

    if not (key_type or value_type):
        return obj

    return _check_key_value_types(obj, key_type, value_type)
def dict_param ( obj , param_name , key_type = None , value_type = None ) : if not isinstance ( obj , dict ) : raise_with_traceback ( _param_type_mismatch_exception ( obj , dict , param_name ) ) if not ( key_type or value_type ) : return obj return _check_key_value_types ( obj , key_type , value_type )
Ensures argument obj is a native Python dictionary, raises an exception if not, and otherwise
    returns obj.
Ensures argument obj is a native Python dictionary raises an exception if not and otherwise returns obj .