When writing python code, people used to other languages can forget the () after a function / method and write code such as:
a = some_function_returning_a_string()
if a.lower == 'yes':
pass
Pylint should be able to know that the comparison will always be False and issue a warning. | |
| priority | normal |
|---|---|
| type | enhancement |
| appeared in | <not specified> |
| done in | <not specified> |
| closed by | <not specified> |


#20067 AttributeError: 'NoneType' object has no attribute 'name' with with