mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Run Black. (#5482)
This commit is contained in:
parent
7dcf984075
commit
32e7c9e7f2
376 changed files with 9142 additions and 10388 deletions
|
@ -366,11 +366,11 @@ class StateTestCase(unittest.TestCase):
|
|||
def _add_depths(self, nodes, edges):
|
||||
def _get_depth(ev):
|
||||
node = nodes[ev]
|
||||
if 'depth' not in node:
|
||||
if "depth" not in node:
|
||||
prevs = edges[ev]
|
||||
depth = max(_get_depth(prev) for prev in prevs) + 1
|
||||
node['depth'] = depth
|
||||
return node['depth']
|
||||
node["depth"] = depth
|
||||
return node["depth"]
|
||||
|
||||
for n in nodes:
|
||||
_get_depth(n)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue