Example #1
0
def _wrap_shortcut(x):
    if isinstance(x, type):
        return instance_of(x)
    else:
        return wrap_shortcut(x)
Example #2
0
def wrap_value_or_type(x):
    if is_matchable_type(x):
        return instance_of(x)
    else:
        return wrap_matcher(x)
Example #3
0
def wrap_value_or_type(x):
    if isinstance(x, type):
        return instance_of(x)
    else:
        return wrap_matcher(x)
Example #4
0
def wrap_value_or_type(x):
    if is_matchable_type(x):
        return instance_of(x)
    else:
        return wrap_matcher(x)