Upgrade to flake8 v6 (#8007)

* Upgrade to flake8 v6

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Christian Clauss
2022-11-29 16:56:41 +01:00
committed by GitHub
parent f32d611689
commit 08c2245705
8 changed files with 16 additions and 13 deletions

View File

@ -16,7 +16,7 @@ class SegmentTree:
return idx * 2 + 1
def build(self, idx, l, r): # noqa: E741
if l == r: # noqa: E741
if l == r:
self.st[idx] = A[l]
else:
mid = (l + r) // 2
@ -33,7 +33,7 @@ class SegmentTree:
"""
if r < a or l > b:
return True
if l == r: # noqa: E741
if l == r:
self.st[idx] = val
return True
mid = (l + r) // 2
@ -51,7 +51,7 @@ class SegmentTree:
"""
if r < a or l > b:
return -math.inf
if l >= a and r <= b: # noqa: E741
if l >= a and r <= b:
return self.st[idx]
mid = (l + r) // 2
q1 = self.query_recursive(self.left(idx), l, mid, a, b)