def to_dict()

in azure-slurm-install/installlib.py [0:0]


    def to_dict(self) -> Dict:
        ret = {}
        for attr in dir(self):
            if attr.startswith("_"):
                continue
            if attr == "to_dict":
                continue
            val = getattr(self, attr)
            if hasattr(val, "__call__"):
                continue
            ret[attr] = val
        return ret