aboutsummaryrefslogtreecommitdiff
path: root/tests/test_devices_ethosu_data_analysis.py
diff options
context:
space:
mode:
authorDmitrii Agibov <dmitrii.agibov@arm.com>2022-09-08 14:24:39 +0100
committerDmitrii Agibov <dmitrii.agibov@arm.com>2022-09-09 17:21:48 +0100
commitf5b293d0927506c2a979a091bf0d07ecc78fa181 (patch)
tree4de585b7cb6ed34da8237063752270189a730a41 /tests/test_devices_ethosu_data_analysis.py
parentcde0c6ee140bd108849bff40467d8f18ffc332ef (diff)
downloadmlia-f5b293d0927506c2a979a091bf0d07ecc78fa181.tar.gz
MLIA-386 Simplify typing in the source code
- Enable deferred annotations evaluation - Use builtin types for type hints whenever possible - Use | syntax for union types - Rename mlia.core._typing into mlia.core.typing Change-Id: I3f6ffc02fa069c589bdd9e8bddbccd504285427a
Diffstat (limited to 'tests/test_devices_ethosu_data_analysis.py')
-rw-r--r--tests/test_devices_ethosu_data_analysis.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_devices_ethosu_data_analysis.py b/tests/test_devices_ethosu_data_analysis.py
index 4b1d38b..26aae76 100644
--- a/tests/test_devices_ethosu_data_analysis.py
+++ b/tests/test_devices_ethosu_data_analysis.py
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
"""Tests for Ethos-U data analysis module."""
-from typing import List
+from __future__ import annotations
import pytest
@@ -139,7 +139,7 @@ def test_perf_metrics_diff() -> None:
],
)
def test_ethos_u_data_analyzer(
- input_data: DataItem, expected_facts: List[Fact]
+ input_data: DataItem, expected_facts: list[Fact]
) -> None:
"""Test Ethos-U data analyzer."""
analyzer = EthosUDataAnalyzer()