def get_signature(self, parse_optional=True):
        spec = ""

        for argn, argdef in self.iter_args():
            spec += argn

            if argdef:
                spec += argdef % '=%s'

            spec += ', '

        spec = spec.rstrip(", ")

        if parse_optional:
            return spec.replace("=None", "=<optional>")

        return spec
dataset/ETHPy150Open treeio/treeio/treeio/core/api/doc.py/HandlerMethod.get_signature/swapped operands of `%`