From af42256db4f70ce589e08594e07262b27afccf07 Mon Sep 17 00:00:00 2001 From: can-gaa-hou Date: Fri, 10 Oct 2025 17:23:28 +0000 Subject: [PATCH] Fix missing brackets (#165138) As stated in the title. Pull Request resolved: https://github.com/pytorch/pytorch/pull/165138 Approved by: https://github.com/Aidyn-A, https://github.com/Skylion007 --- tools/linter/adapters/testowners_linter.py | 2 +- torch/csrc/cuda/python_nccl.cpp | 2 +- torch/jit/_recursive.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/linter/adapters/testowners_linter.py b/tools/linter/adapters/testowners_linter.py index b7edf23521b2..82dc668b6738 100755 --- a/tools/linter/adapters/testowners_linter.py +++ b/tools/linter/adapters/testowners_linter.py @@ -103,7 +103,7 @@ def check_labels( description=( f"{label} is not an acceptable owner " "(please update to another label or edit ACCEPTABLE_OWNERS_LABELS " - "in tools/linters/adapters/testowners_linter.py" + "in tools/linters/adapters/testowners_linter.py)" ), ) ) diff --git a/torch/csrc/cuda/python_nccl.cpp b/torch/csrc/cuda/python_nccl.cpp index f7493a20e301..5c06b49009c2 100644 --- a/torch/csrc/cuda/python_nccl.cpp +++ b/torch/csrc/cuda/python_nccl.cpp @@ -141,7 +141,7 @@ PyObject* THCPModule_nccl_reduce(PyObject* self, PyObject* args) { "nccl_reduce", 1, "(sequence[Tensor] inputs, Tensor output, int root," - " int op, sequence[torch.cuda.Stream or None]"); + " int op, sequence[torch.cuda.Stream or None])"); return nullptr; } diff --git a/torch/jit/_recursive.py b/torch/jit/_recursive.py index 470b46314421..530266fa9dca 100644 --- a/torch/jit/_recursive.py +++ b/torch/jit/_recursive.py @@ -368,7 +368,7 @@ def infer_concrete_type_builder(nn_module, share_types=True): hint = ( "(This function exists as an attribute on the Python module, " "but we failed to compile it to a TorchScript function. " - f"\nThe error stack is reproduced here:\n{e}" + f"\nThe error stack is reproduced here:\n{e})" ) concrete_type_builder.add_failed_attribute(name, hint)