Added self: Any linter test

This commit is contained in:
fredfishgames 2017-12-08 18:26:38 +00:00 committed by Steve Howell
parent 9492495f4b
commit 5673b49826

View file

@ -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:[(]",