From 0b6280277257e5efdc3ab2e40c155ef60a7580ab Mon Sep 17 00:00:00 2001 From: Erik Lundell Date: Wed, 12 Nov 2025 16:48:36 +0100 Subject: [PATCH] Arm backend: Fix lint error Patch got in before linting was changed, but close enough that it was not fixed in the lint patch. Fix now instead. Signed-off-by: Erik Lundell Change-Id: I4ab9136040aecb381e553e4597d5a934e9e1f507 --- backends/arm/test/misc/test_call_operator_submodule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/arm/test/misc/test_call_operator_submodule.py b/backends/arm/test/misc/test_call_operator_submodule.py index 583a2e17e42..799c546e24e 100644 --- a/backends/arm/test/misc/test_call_operator_submodule.py +++ b/backends/arm/test/misc/test_call_operator_submodule.py @@ -3,7 +3,7 @@ # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. -from typing import Any +from typing import Any, Optional import torch @@ -24,7 +24,7 @@ def __init__(self, initial_graph_module): self.submodule = None self.num_submodules_called = 0 - def call_operator(self, op, args, kwargs, meta, updated: bool = False): + def call_operator(self, op, args, kwargs, meta, updated: Optional[bool] = False): """Should only be called from the top-level graph module.""" self.depths.append(self.submodule_depth) assert self.submodule == self.initial_submodule