def __str__()

in 3_optimization-design-ptn/03_prompt-optimization/promptwizard/glue/common/base_classes.py [0:0]


    def __str__(self) -> str:
        attributes_string = []
        for member in getmembers(self):

            # remove private and protected attributes
            if not member[0].startswith('_'):

                # remove methods that does not start with underscore
                if not ismethod(member[1]):
                    attributes_string.append(member)
        return str(attributes_string)