forked from hans/Nominatim
pylint: disable no-self-use check
This checker encourages bad behaviour (namely changing the static status of a function during inheritence) and will be made optional in upcoming versions of pylint.
This commit is contained in:
@@ -11,6 +11,6 @@ ignored-modules=icu,datrie
|
||||
# 'with' statements.
|
||||
ignored-classes=NominatimArgs,closing
|
||||
# 'too-many-ancestors' is triggered already by deriving from UserDict
|
||||
disable=too-few-public-methods,duplicate-code,too-many-ancestors,bad-option-value
|
||||
disable=too-few-public-methods,duplicate-code,too-many-ancestors,bad-option-value,no-self-use
|
||||
|
||||
good-names=i,x,y,fd,db
|
||||
|
||||
@@ -278,8 +278,7 @@ class LegacyICUNameAnalyzer(AbstractAnalyzer):
|
||||
+ [(k, v, part_ids.get(v, None)) for k, v in partial_tokens.items()]
|
||||
|
||||
|
||||
@staticmethod
|
||||
def normalize_postcode(postcode):
|
||||
def normalize_postcode(self, postcode):
|
||||
""" Convert the postcode to a standardized form.
|
||||
|
||||
This function must yield exactly the same result as the SQL function
|
||||
|
||||
@@ -337,8 +337,7 @@ class LegacyNameAnalyzer(AbstractAnalyzer):
|
||||
return self.normalizer.transliterate(phrase)
|
||||
|
||||
|
||||
@staticmethod
|
||||
def normalize_postcode(postcode):
|
||||
def normalize_postcode(self, postcode):
|
||||
""" Convert the postcode to a standardized form.
|
||||
|
||||
This function must yield exactly the same result as the SQL function
|
||||
|
||||
Reference in New Issue
Block a user