pylint #9839 analyze (some) strings for variable [open]
In this function pylint complains that a and b are unused: def f(a): b = "some var" return "%(a)s, %(b)s" % locals() It would be nice if it noticed literal % locals() structure and treated variable references within the string as actual usage. | |
priority | normal |
---|---|
type | enhancement |
done in | <not specified> |
load | 1.000 |
load left | 1.000 |
closed by | <not specified> |