diff options
author | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-09-08 14:24:39 +0100 |
---|---|---|
committer | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-09-09 17:21:48 +0100 |
commit | f5b293d0927506c2a979a091bf0d07ecc78fa181 (patch) | |
tree | 4de585b7cb6ed34da8237063752270189a730a41 /tests/test_cli_helpers.py | |
parent | cde0c6ee140bd108849bff40467d8f18ffc332ef (diff) | |
download | mlia-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_cli_helpers.py')
-rw-r--r-- | tests/test_cli_helpers.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_cli_helpers.py b/tests/test_cli_helpers.py index 2c52885..c8aeebe 100644 --- a/tests/test_cli_helpers.py +++ b/tests/test_cli_helpers.py @@ -1,9 +1,9 @@ # SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates. # SPDX-License-Identifier: Apache-2.0 """Tests for the helper classes.""" +from __future__ import annotations + from typing import Any -from typing import Dict -from typing import List import pytest @@ -67,9 +67,9 @@ class TestCliActionResolver: ], ) def test_apply_optimizations( - args: Dict[str, Any], - params: Dict[str, Any], - expected_result: List[str], + args: dict[str, Any], + params: dict[str, Any], + expected_result: list[str], ) -> None: """Test action resolving for applying optimizations.""" resolver = CLIActionResolver(args) @@ -127,7 +127,7 @@ class TestCliActionResolver: ], ) def test_check_performance( - args: Dict[str, Any], expected_result: List[str] + args: dict[str, Any], expected_result: list[str] ) -> None: """Test check performance info.""" resolver = CLIActionResolver(args) @@ -158,7 +158,7 @@ class TestCliActionResolver: ], ) def test_check_operator_compatibility( - args: Dict[str, Any], expected_result: List[str] + args: dict[str, Any], expected_result: list[str] ) -> None: """Test checking operator compatibility info.""" resolver = CLIActionResolver(args) |