From 56c06cf3a2bde0a60d79733e365c8fa49fcd877f Mon Sep 17 00:00:00 2001 From: a-gardner1 Date: Mon, 20 May 2024 17:24:22 +0000 Subject: [PATCH] Tell linter to ignore unused args --- onnxscript/function_libs/torch_lib/ops/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/onnxscript/function_libs/torch_lib/ops/core.py b/onnxscript/function_libs/torch_lib/ops/core.py index 5b6b9b6da3..c1aa5e4c38 100644 --- a/onnxscript/function_libs/torch_lib/ops/core.py +++ b/onnxscript/function_libs/torch_lib/ops/core.py @@ -8404,8 +8404,8 @@ def aten_unique( def aten__unique2( self: TensorType, sorted: bool = True, - return_inverse: bool = False, - return_counts: bool = False + return_inverse: bool = False, # pylint: disable=unused-argument + return_counts: bool = False # pylint: disable=unused-argument ) -> tuple[TensorType, TensorType, TensorType]: """_unique2(Tensor self, bool sorted=True, bool return_inverse=False, bool return_counts=False) -> (Tensor, Tensor, Tensor)""" @@ -8424,8 +8424,8 @@ def aten_unique_dim( self: TensorType, dim: int, sorted: bool = True, - return_inverse: bool = False, - return_counts: bool = False, + return_inverse: bool = False, # pylint: disable=unused-argument + return_counts: bool = False, # pylint: disable=unused-argument ) -> tuple[TensorType, TensorType, TensorType]: """unique_dim(Tensor self, int dim, bool sorted=True, bool return_inverse=False, bool return_counts=False) -> (Tensor, Tensor, Tensor)"""