in src/hpc/autoscale/node/nodemanager.py [0:0]
def __str__(self) -> str:
attrs = []
for attr_name in dir(self):
if not (attr_name[0].isalpha() or attr_name.startswith("_NodeManager")):
continue
if "core_count" in attr_name:
continue
attr = getattr(self, attr_name)
if "__call__" not in dir(attr):
attr_expr = attr_name.replace("_NodeManager", "")
attrs.append("{}={}".format(attr_expr, attr))
return "NodeManager({})".format(", ".join(attrs))