Skip to content

Commit 4418b61

Browse files
committed
minor doc str cleanup
1 parent d51d789 commit 4418b61

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

NodeGraphQt/base/utils.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,11 @@ def topological_sort_by_down(start_nodes=None, all_nodes=None):
498498
'start_nodes' and 'all_nodes' only one needs to be given.
499499
500500
Args:
501-
start_nodes (list[NodeGraphQt.BaseNode])(Optional):
502-
the start update nodes of the graph.
503-
all_nodes (list[NodeGraphQt.BaseNode])(Optional):
504-
if 'start_nodes' is None the function can calculate start nodes
505-
from 'all_nodes'.
501+
start_nodes (list[NodeGraphQt.BaseNode]):
502+
(Optional) the start update nodes of the graph.
503+
all_nodes (list[NodeGraphQt.BaseNode]):
504+
(Optional) if 'start_nodes' is None the function can calculate
505+
start nodes from 'all_nodes'.
506506
507507
Returns:
508508
list[NodeGraphQt.BaseNode]: sorted nodes.
@@ -532,11 +532,11 @@ def topological_sort_by_up(start_nodes=None, all_nodes=None):
532532
'start_nodes' and 'all_nodes' only one needs to be given.
533533
534534
Args:
535-
start_nodes (list[NodeGraphQt.BaseNode])(Optional):
536-
the end update nodes of the graph.
537-
all_nodes (list[NodeGraphQt.BaseNode])(Optional):
538-
if 'start_nodes' is None the function can calculate start nodes
539-
from 'all_nodes'.
535+
start_nodes (list[NodeGraphQt.BaseNode]):
536+
(Optional) the end update nodes of the graph.
537+
all_nodes (list[NodeGraphQt.BaseNode]):
538+
(Optional) if 'start_nodes' is None the function can calculate
539+
start nodes from 'all_nodes'.
540540
Returns:
541541
list[NodeGraphQt.BaseNode]: sorted nodes.
542542
"""
@@ -639,8 +639,8 @@ def _compute_rank_down(start_nodes):
639639
Compute the rank of the down stream nodes.
640640
641641
Args:
642-
start_nodes (list[NodeGraphQt.BaseNode])(Optional):
643-
the start nodes of the graph.
642+
start_nodes (list[NodeGraphQt.BaseNode]):
643+
(Optional) the start nodes of the graph.
644644
645645
Returns:
646646
dict{NodeGraphQt.BaseNode: node_rank, ...}

0 commit comments

Comments
 (0)