Skip to content

Commit cebb5af

Browse files
authored
Arm backend: Fix lint error (#15779)
Patch got in before linting was changed, but close enough that it was not fixed in the lint patch. Fix now instead. cc @freddan80 @per @zingo @oscarandersson8218 @digantdesai Signed-off-by: Erik Lundell <erik.lundell@arm.com>
1 parent 1034a0f commit cebb5af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backends/arm/test/misc/test_call_operator_submodule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This source code is licensed under the BSD-style license found in the
44
# LICENSE file in the root directory of this source tree.
55

6-
from typing import Any
6+
from typing import Any, Optional
77

88
import torch
99

@@ -24,7 +24,7 @@ def __init__(self, initial_graph_module):
2424
self.submodule = None
2525
self.num_submodules_called = 0
2626

27-
def call_operator(self, op, args, kwargs, meta, updated: bool = False):
27+
def call_operator(self, op, args, kwargs, meta, updated: Optional[bool] = False):
2828
"""Should only be called from the top-level graph module."""
2929
self.depths.append(self.submodule_depth)
3030
assert self.submodule == self.initial_submodule

0 commit comments

Comments
 (0)