refactor: prefer f-strings to other format/concatentation styles (#8474)

This commit is contained in:
Kevin Kirsche
2022-08-03 08:04:27 -04:00
committed by GitHub
parent 38c4a1ece2
commit bd7a02fad4
5 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ def main() -> None:
print("error running npx; is Node.js installed?", file=sys.stderr)
sys.exit(1)
command = [npx, "-p", "pyright@" + _PYRIGHT_VERSION, "pyright"] + sys.argv[1:]
command = [npx, "-p", f"pyright@{_PYRIGHT_VERSION}", "pyright"] + sys.argv[1:]
ret = subprocess.run(command).returncode
sys.exit(ret)