mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 17:14:02 +00:00
pep8: Add compliance with rule E261 to graph.py.
This commit is contained in:
committed by
Tim Abbott
parent
c0e1b49b68
commit
ffb8440eef
@@ -11,9 +11,9 @@ EdgeSet = Set[Edge]
|
||||
class Graph(object):
|
||||
def __init__(self, tuples):
|
||||
# type: (EdgeSet) -> None
|
||||
self.children = defaultdict(list) # type: DefaultDict[str, List[str]]
|
||||
self.parents = defaultdict(list) # type: DefaultDict[str, List[str]]
|
||||
self.nodes = set() # type: Set[str]
|
||||
self.children = defaultdict(list) # type: DefaultDict[str, List[str]]
|
||||
self.parents = defaultdict(list) # type: DefaultDict[str, List[str]]
|
||||
self.nodes = set() # type: Set[str]
|
||||
|
||||
for parent, child in tuples:
|
||||
self.parents[child].append(parent)
|
||||
@@ -47,7 +47,7 @@ class Graph(object):
|
||||
# type: () -> None
|
||||
still_work_to_do = True
|
||||
while still_work_to_do:
|
||||
still_work_to_do = False # for now
|
||||
still_work_to_do = False # for now
|
||||
for node in self.nodes:
|
||||
if self.is_exterior_node(node):
|
||||
self.remove(node)
|
||||
|
||||
Reference in New Issue
Block a user