diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-03-13 13:15:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-13 13:15:46 +0100 |
commit | 663a2be7abd407fc680f426155ba26becaaa278d (patch) | |
tree | fe0b64a75fe24093b6f26018d82e5b5477a13d3c /pylint/graph.py | |
parent | 7981ec021b84c6f2b216202c1c028da4b0ee995b (diff) | |
download | pylint-git-663a2be7abd407fc680f426155ba26becaaa278d.tar.gz |
Upgrade ``pydocstringformatter`` to ``0.5.0`` (#5910)
Diffstat (limited to 'pylint/graph.py')
-rw-r--r-- | pylint/graph.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pylint/graph.py b/pylint/graph.py index f75ce4e64..c35cf8c5d 100644 --- a/pylint/graph.py +++ b/pylint/graph.py @@ -152,7 +152,8 @@ class DotBackend: def emit_edge(self, name1, name2, **props): """Emit an edge from <name1> to <name2>. - edge properties: see https://www.graphviz.org/doc/info/attrs.html + + For edge properties: see https://www.graphviz.org/doc/info/attrs.html """ attrs = [f'{prop}="{value}"' for prop, value in props.items()] n_from, n_to = normalize_node_id(name1), normalize_node_id(name2) @@ -160,7 +161,8 @@ class DotBackend: def emit_node(self, name, **props): """Emit a node with given properties. - node properties: see https://www.graphviz.org/doc/info/attrs.html + + For node properties: see https://www.graphviz.org/doc/info/attrs.html """ attrs = [f'{prop}="{value}"' for prop, value in props.items()] self.emit(f"{normalize_node_id(name)} [{', '.join(sorted(attrs))}];") @@ -172,9 +174,8 @@ def normalize_node_id(nid): def get_cycles(graph_dict, vertices=None): - """Given a dictionary representing an ordered graph (i.e. key are vertices - and values is a list of destination vertices representing edges), return a - list of detected cycles + """Return a list of detected cycles in a dictionary representing an ordered graph + (i.e. key are vertices and values is a list of destination vertices representing edges) """ if not graph_dict: return () |