Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backends/arm/test/misc/test_call_operator_submodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
Loading