Skip to content

Commit 0bb9d18

Browse files
Arm backend: Remove pyre-ignores (#15775)
Pyre is no longer used. cc @freddan80 @per @zingo @oscarandersson8218 @digantdesai Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com> Co-authored-by: Zingo Andersen <zingo.andersen@arm.com>
1 parent 6e8d023 commit 0bb9d18

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

backends/arm/_passes/arm_pass_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def get_node_arg(args: list | dict, key: int | str | type, default_value=None):
216216
f"Out of bounds index {key} for getting value in args (of size {len(args)})"
217217
)
218218
elif isinstance(key, str):
219-
return args.get(key, default_value) # type: ignore[union-attr] # pyre-ignore[16]
219+
return args.get(key, default_value) # type: ignore[union-attr]
220220
elif isclass(key):
221221
for arg in args:
222222
if isinstance(arg, key):

backends/arm/operator_support/to_dim_order_copy_support.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class ToCopySupported(SupportedTOSAOperatorCheck):
5252

5353
@staticmethod
5454
def _merge_supported_types(
55-
# pyre-ignore[11]
5655
dtypes1: SupportedTypeDict,
5756
dtypes2: SupportedTypeDict,
5857
) -> SupportedTypeDict:

backends/arm/process_node.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ def process_call_function(
5757
return
5858

5959
# Visiting each Node
60-
# pyre-ignore[16]: Undefined attribute.
6160
if node.target.__name__ in node_visitors: # type: ignore[union-attr]
62-
# pyre-ignore[16]: Undefined attribute.
6361
node_visitors[node.target.__name__].define_node( # type: ignore[union-attr]
6462
node,
6563
tosa_graph,

backends/arm/util/arm_model_evaluator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ def evaluate(self) -> dict[str, Any]:
238238

239239
if self.tosa_output_path:
240240
# We know output_metrics["metrics"] is list since we just defined it, safe to ignore.
241-
# pyre-ignore[16]
242241
output_metrics["metrics"][ # type: ignore[index]
243242
"compression_ratio"
244243
] = self.get_compression_ratio()

0 commit comments

Comments
 (0)