mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Enable ruff E741 rule (#11370)
* Enable ruff E741 rule * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -37,7 +37,7 @@ class Dinic:
|
||||
# Here we calculate the flow that reaches the sink
|
||||
def max_flow(self, source, sink):
|
||||
flow, self.q[0] = 0, source
|
||||
for l in range(31): # l = 30 maybe faster for random data
|
||||
for l in range(31): # l = 30 maybe faster for random data # noqa: E741
|
||||
while True:
|
||||
self.lvl, self.ptr = [0] * len(self.q), [0] * len(self.q)
|
||||
qi, qe, self.lvl[source] = 0, 1, 1
|
||||
|
Reference in New Issue
Block a user