diff --git a/tools/custom_check.py b/tools/custom_check.py index d26e664..706ceb3 100644 --- a/tools/custom_check.py +++ b/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:[(]",