Added self: Any linter test
MODIFY
tools/custom_check.py
tools/custom_check.py
@@ -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:[(]",

Added self: Any linter test