fix flake and pep remarks
This commit is contained in:
parent
2d71c541c6
commit
b7ba3cd53e
@ -1080,8 +1080,8 @@ class WordHinter:
|
|||||||
new_no_prefixes = self.filter_prefixes(new, existing)
|
new_no_prefixes = self.filter_prefixes(new, existing)
|
||||||
fallback_no_prefixes = self.filter_prefixes(fallback, existing)
|
fallback_no_prefixes = self.filter_prefixes(fallback, existing)
|
||||||
# either the first good, or None
|
# either the first good, or None
|
||||||
return (next(new_no_prefixes, None)
|
return (next(new_no_prefixes, None) or
|
||||||
or next(fallback_no_prefixes, None))
|
next(fallback_no_prefixes, None))
|
||||||
|
|
||||||
def hint(self, elems):
|
def hint(self, elems):
|
||||||
"""Produce hint labels based on the html tags.
|
"""Produce hint labels based on the html tags.
|
||||||
@ -1107,4 +1107,3 @@ class WordHinter:
|
|||||||
used_hints.add(hint)
|
used_hints.add(hint)
|
||||||
hints.append(hint)
|
hints.append(hint)
|
||||||
return hints
|
return hints
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
import re
|
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
import pytest
|
import pytest
|
||||||
|
Loading…
Reference in New Issue
Block a user