def part(self, channel, reason=None, force=False):
        if not force and not channel in self._channels:
            return

        args = [channel]
        if reason:
            args.append(reason)

        self.send_command("PART", *args)

    ##### Public Event Handlers ###############################################
Leave the specified channel.
dataset/ETHPy150Open ecdavis/pants/pants/contrib/irc.py/IRCClient.part