

def make_concurrent(self, rhs):
    if (not isinstance(rhs, BaseCommand)):
        raise TypeError('rhs must be an instance of BaseCommand')
    if isinstance(self, ConcurrentCommand):
        if isinstance(rhs, ConcurrentCommand):
            self.commands.extend(self.commands)
        else:
            self.commands.append(rhs)
        return self
    elif isinstance(rhs, ConcurrentCommand):
        rhs.commands.insert(0, self)
        return rhs
    else:
        return ConcurrentCommand(self, rhs)

dataset/ETHPy150Open tomerfiliba/plumbum/experiments/parallel.py make_concurrent/VarMisuse@58/87 `rhs`->`self`