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

@ -106,7 +106,7 @@ class SegmentTree(Generic[T]):
l, r = l + self.N, r + self.N
res: T | None = None
while l <= r: # noqa: E741
while l <= r:
if l % 2 == 1:
res = self.st[l] if res is None else self.fn(res, self.st[l])
if r % 2 == 0: