parsl/executors/serialize/canning.py
def istype(obj, check):
    """Like isinstance(obj, check), but strict.

    This won't catch subclasses.
    """
    if isinstance(check, tuple):
        for cls in check:
            if type(obj) is cls:
                return True
        return False
    else:
        return type(obj) is check
def istype(obj, check):
    """Like isinstance(obj, check), but strict.

    This won't catch subclasses.
    """
    if isinstance(check, tuple):
        for cls in check:
            if type(obj) is cls:
                return True
        return False
    else:
        return type(obj) is check
def istype ( obj , check ) : if isinstance ( check , tuple ) : for cls in check : if type ( obj ) is cls : return True return False else : return type ( obj ) is check
Like isinstance(obj, check), but strict.

    This won't catch subclasses.
Like isinstance ( obj check ) but strict .