Method: pylint.pyreverse.writer.DiagramWriter.get_class_properties
Calls: 130, Exceptions: 0, Paths: 1Back
Path 1: 130 calls (1.0)
ClassEntity (130)
NodeProperties (130)
1def get_class_properties(self, obj: ClassEntity) -> NodeProperties:
2 """Get label and shape for classes."""
3 properties = NodeProperties(
4 label=obj.title,
5 attrs=obj.attrs if not self.config.only_classnames else None,
6 methods=obj.methods if not self.config.only_classnames else None,
7 fontcolor="red" if is_exception(obj.node) else "black",
8 color=self.get_shape_color(obj) if self.config.colorized else "black",
9 )
10 return properties