[Fix] Adding missing f prefixes to formatted strings [3/N] (#164067)

As stated in the title.

* #164068
* __->__ #164067
* #164066
* #164065

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164067
Approved by: https://github.com/Skylion007
This commit is contained in:
can-gaa-hou
2025-09-29 04:35:19 +00:00
committed by PyTorch MergeBot
parent d8becd1cf4
commit ad32ed83b3
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class TestGenUnboxing(unittest.TestCase):
temp_file.seek(0)
args = [
"--op-registration-allowlist=op1",
"--TEST-ONLY-op-registration-allowlist-yaml-path={temp_file.name}",
f"--TEST-ONLY-op-registration-allowlist-yaml-path={temp_file.name}",
"--op-selection-yaml-path=path2",
]
gen_unboxing.main(args)

View File

@ -89,7 +89,7 @@ def main() -> None:
package_name, _, version = package.partition("=")
if version == "":
raise RuntimeError(
"Package {package_name} did not have a version specified. "
f"Package {package_name} did not have a version specified. "
"Please specify a version to produce a consistent linting experience."
)