aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/devices/ethosu/handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mlia/devices/ethosu/handlers.py')
-rw-r--r--src/mlia/devices/ethosu/handlers.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mlia/devices/ethosu/handlers.py b/src/mlia/devices/ethosu/handlers.py
index ee0b809..48f9a2e 100644
--- a/src/mlia/devices/ethosu/handlers.py
+++ b/src/mlia/devices/ethosu/handlers.py
@@ -1,12 +1,13 @@
# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
"""Event handler."""
+from __future__ import annotations
+
import logging
-from typing import Optional
-from mlia.core._typing import PathOrFileLike
from mlia.core.events import CollectedDataEvent
from mlia.core.handlers import WorkflowEventsHandler
+from mlia.core.typing import PathOrFileLike
from mlia.devices.ethosu.events import EthosUAdvisorEventHandler
from mlia.devices.ethosu.events import EthosUAdvisorStartedEvent
from mlia.devices.ethosu.performance import OptimizationPerformanceMetrics
@@ -20,7 +21,7 @@ logger = logging.getLogger(__name__)
class EthosUEventHandler(WorkflowEventsHandler, EthosUAdvisorEventHandler):
"""CLI event handler."""
- def __init__(self, output: Optional[PathOrFileLike] = None) -> None:
+ def __init__(self, output: PathOrFileLike | None = None) -> None:
"""Init event handler."""
super().__init__(ethos_u_formatters, output)