mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
refactor: prefer f-strings to other format/concatentation styles (#8474)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user