def __str__(self):
        s = ""

        if self.isleaf:
            if self.toknum == token.COMMA:
                s = ", "
            elif self.toknum == token.COLON:
                if self.find_parent('subscriptlist'):
                    s = ":"
                else:
                    s = ": "
            elif self.toknum == token.EQUAL:
                if self.find_parent('parameters'):
                    s = "="
                else:
                    s = " = "
            elif self.toknum in (token.STAR, token.DOUBLESTAR):
                if self.find_parent('typedargslist', max_depth=1):
                    s = "{0}".format(self.value)
                else:
                    s = " {0} ".format(self.value)
            elif self.OPERATORS in self.toknum:
                s = " {0} ".format(self.value)
            elif self.toknum == token.NAME:
                s = "{0}".format(self.value)
            else:
                s = "{0}".format(self.value)
        else:
            s = self.format()

        return s
dataset/ETHPy150Open KristoforMaynard/SublimeAutoDocstring/dparse.py/STNode.__str__/swapped operands of `in`