Ejemplo n.º 1
0
def _wrap_shortcut(x):
    if isinstance(x, type):
        return instance_of(x)
    else:
        return wrap_shortcut(x)
Ejemplo n.º 2
0
def wrap_value_or_type(x):
    if is_matchable_type(x):
        return instance_of(x)
    else:
        return wrap_matcher(x)
Ejemplo n.º 3
0
def wrap_value_or_type(x):
    if isinstance(x, type):
        return instance_of(x)
    else:
        return wrap_matcher(x)
Ejemplo n.º 4
0
def wrap_value_or_type(x):
    if is_matchable_type(x):
        return instance_of(x)
    else:
        return wrap_matcher(x)