n the following program, the message suppression has no effect: def f(
k,
# pylint: disable-msg=W0102
d = {}
):
return d.get(k)
W0102: 1:f: Dangerous default value {} as argument
However, if the "disable-msg" comment is moved to the start of the argument list or to the end of it, it does take effect. But if it is put on the same line as "d = {}", it has no effect. This is a regression in pylint 0.18.0 / astng 0.19.0 compared to pylint 0.16.0 / astng 0.17.4. | |
| priority | normal |
|---|---|
| type | bug |
| appeared in | <not specified> |
| done in | <not specified> |
| load | 0.300 |
| load left | 0.300 |
| closed by | <not specified> |


#8769 downgrads missing attribute errors to warnings if there is some modificati...