Method: pylint.pyreverse.diagrams.ClassDiagram.get_methods
Calls: 158, Exceptions: 0, Paths: 1Back
Path 1: 158 calls (1.0)
ClassDef (158)
[] (85) list (73)
1def get_methods(self, node: nodes.ClassDef) -> list[nodes.FunctionDef]:
2 """Return visible methods."""
3 methods = [
4 m
5 for m in node.values()
6 if isinstance(m, nodes.FunctionDef)
7 and not isinstance(m, astroid.objects.Property)
8 and not decorated_with_property(m)
9 and self.show_attr(m.name)
10 ]
11 return sorted(methods, key=lambda n: n.name) # type: ignore[no-any-return]