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

@ -314,7 +314,7 @@ class SmoSVM:
l, h = max(0.0, a2 - a1), min(self._c, self._c + a2 - a1)
else:
l, h = max(0.0, a2 + a1 - self._c), min(self._c, a2 + a1)
if l == h: # noqa: E741
if l == h:
return None, None
# calculate eta