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)