Commit 58c965d8 authored by Daniel Latypov's avatar Daniel Latypov Committed by Shuah Khan
Browse files

kunit: tool: remove unnecessary "annotations" import

The import was working around the fact "tuple[T]" was used instead of

Convert it to use type.Tuple to be consistent with how the rest of the
code is anotated.

Signed-off-by: default avatarDaniel Latypov <>
Reviewed-by: default avatarDavid Gow <>
Reviewed-by: default avatarBrendan Higgins <>
Tested-by: default avatarBrendan Higgins <>
Signed-off-by: default avatarShuah Khan <>
parent a72fa630
......@@ -6,15 +6,13 @@
# Author: Felix Guo <>
# Author: Brendan Higgins <>
from __future__ import annotations
import importlib.util
import logging
import subprocess
import os
import shutil
import signal
from typing import Iterator
from typing import Optional
from typing import Iterator, Optional, Tuple
from contextlib import ExitStack
......@@ -208,7 +206,7 @@ def get_source_tree_ops(arch: str, cross_compile: Optional[str]) -> LinuxSourceT
raise ConfigError(arch + ' is not a valid arch')
def get_source_tree_ops_from_qemu_config(config_path: str,
cross_compile: Optional[str]) -> tuple[
cross_compile: Optional[str]) -> Tuple[
str, LinuxSourceTreeOperations]:
# The module name/path has very little to do with where the actual file
# exists (I learned this through experimentation and could not find it
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment