From 31509726e5b118f5704fa8d583053973c1110ece Mon Sep 17 00:00:00 2001 From: Dayoung Lee Date: Fri, 1 Aug 2025 17:14:58 +0900 Subject: [PATCH] Remove redundant ignore Let's remove redundant ignore. TICO-DCO-1.0-Signed-off-by: Dayoung Lee --- test/modules/op/split_with_sizes.py | 8 ++++---- tico/serialize/circle_graph.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/modules/op/split_with_sizes.py b/test/modules/op/split_with_sizes.py index 31033644..71d1c49c 100644 --- a/test/modules/op/split_with_sizes.py +++ b/test/modules/op/split_with_sizes.py @@ -53,8 +53,8 @@ def __init__(self): super().__init__() def forward(self, input_, split_size): - result = torch.split_with_sizes_copy(input_, split_size) # type: ignore[func-returns-value] - return result + torch.split_with_sizes_copy(input_, split_size) + return None def get_example_inputs(self): return ( @@ -68,8 +68,8 @@ def __init__(self): super().__init__() def forward(self, input_, split_size, dim): - result = torch.split_with_sizes_copy(input_, split_size, dim) # type: ignore[func-returns-value] - return result + torch.split_with_sizes_copy(input_, split_size, dim) + return None def get_example_inputs(self): return ( diff --git a/tico/serialize/circle_graph.py b/tico/serialize/circle_graph.py index aacba4f2..4ac85001 100644 --- a/tico/serialize/circle_graph.py +++ b/tico/serialize/circle_graph.py @@ -152,7 +152,7 @@ def add_tensor_from_node( self.name_to_node[tensor.name] = node assert node.meta.get("val") is not None tensor.type = extract_circle_dtype(node) - tensor.shape, tensor.shapeSignature = extract_circle_shape(node) # type: ignore[assignment] + tensor.shape, tensor.shapeSignature = extract_circle_shape(node) if QPARAM_KEY in node.meta: tensor.quantization = to_circle_qparam(node.meta[QPARAM_KEY])