Added self: Any linter test
This commit is contained in:
parent
9492495f4b
commit
5673b49826
|
@ -137,6 +137,10 @@ def build_custom_checkers(by_lang):
|
|||
'description': 'Missing whitespace after "#"'},
|
||||
{'pattern': "assertEquals[(]",
|
||||
'description': 'Use assertEqual, not assertEquals (which is deprecated).'},
|
||||
{'pattern': 'self: Any',
|
||||
'description': 'you can omit Any annotation for self',
|
||||
'good_lines': ['def foo (self):'],
|
||||
'bad_lines': ['def foo(self: Any):']},
|
||||
{'pattern': "== None",
|
||||
'description': 'Use `is None` to check whether something is None'},
|
||||
{'pattern': "type:[(]",
|
||||
|
|
Loading…
Reference in a new issue