mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
d8becd1cf4
commit
ad32ed83b3
@ -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)
|
||||
|
@ -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."
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user