UNPKG

pi-lens

Version:

Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo

15 lines (14 loc) • 352 B
id: no-template-string-concat valid: - | from string import Template t = Template("Hello $name") msg = t.substitute(name="World") - "msg = 'Hello ' + name + ' World'" invalid: - | from string import Template msg = Template("Hello $name") + " World" - | from string import Template msg = "Hello" + Template(" $name")