mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 18:42:33 +02:00
[fix] prepare for pylint 2.14.0
Remove issue reported by Pylint 2.14.0: - no-self-use: has been moved to optional extension [1] - The refactoring checker now also raises 'consider-using-generator' messages for max(), min() and sum(). [2] .pylintrc: - <option name>-hint has been removed since long, Pylint 2.14.0 raises an error on invalid options - bad-continuation and bad-whitespace have been removed [3] [1] https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers [2] https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/full.html#what-s-new-in-pylint-2-14-0 [2] https://pylint.pycqa.org/en/latest/whatsnew/2/2.6/summary.html#summary-release-highlights Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
658e04077b
commit
2de007138c
12 changed files with 9 additions and 52 deletions
|
@ -464,7 +464,6 @@ def get_attributes(language):
|
|||
|
||||
|
||||
class WDAttribute:
|
||||
# pylint: disable=no-self-use
|
||||
__slots__ = ('name',)
|
||||
|
||||
def __init__(self, name):
|
||||
|
@ -626,7 +625,6 @@ class WDImageAttribute(WDURLAttribute):
|
|||
|
||||
|
||||
class WDDateAttribute(WDAttribute):
|
||||
# pylint: disable=no-self-use
|
||||
def get_select(self):
|
||||
return '?{name} ?{name}timePrecision ?{name}timeZone ?{name}timeCalendar'.replace('{name}', self.name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue