Skip to content

Commit 56c06cf

Browse files
committed
Tell linter to ignore unused args
1 parent 6f89cef commit 56c06cf

File tree

1 file changed

+4
-4
lines changed
  • onnxscript/function_libs/torch_lib/ops

1 file changed

+4
-4
lines changed

onnxscript/function_libs/torch_lib/ops/core.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -8404,8 +8404,8 @@ def aten_unique(
84048404
def aten__unique2(
84058405
self: TensorType,
84068406
sorted: bool = True,
8407-
return_inverse: bool = False,
8408-
return_counts: bool = False
8407+
return_inverse: bool = False, # pylint: disable=unused-argument
8408+
return_counts: bool = False # pylint: disable=unused-argument
84098409
) -> tuple[TensorType, TensorType, TensorType]:
84108410
"""_unique2(Tensor self, bool sorted=True, bool return_inverse=False, bool return_counts=False) -> (Tensor, Tensor, Tensor)"""
84118411

@@ -8424,8 +8424,8 @@ def aten_unique_dim(
84248424
self: TensorType,
84258425
dim: int,
84268426
sorted: bool = True,
8427-
return_inverse: bool = False,
8428-
return_counts: bool = False,
8427+
return_inverse: bool = False, # pylint: disable=unused-argument
8428+
return_counts: bool = False, # pylint: disable=unused-argument
84298429
) -> tuple[TensorType, TensorType, TensorType]:
84308430
"""unique_dim(Tensor self, int dim, bool sorted=True, bool return_inverse=False, bool return_counts=False) -> (Tensor, Tensor, Tensor)"""
84318431

0 commit comments

Comments
 (0)