Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kunit: tool: remove unnecessary "annotations" import

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

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

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Tested-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Daniel Latypov and committed by
Shuah Khan
58c965d8 a72fa630

+2 -4
+2 -4
tools/testing/kunit/kunit_kernel.py
··· 6 6 # Author: Felix Guo <felixguoxiuping@gmail.com> 7 7 # Author: Brendan Higgins <brendanhiggins@google.com> 8 8 9 - from __future__ import annotations 10 9 import importlib.util 11 10 import logging 12 11 import subprocess 13 12 import os 14 13 import shutil 15 14 import signal 16 - from typing import Iterator 17 - from typing import Optional 15 + from typing import Iterator, Optional, Tuple 18 16 19 17 from contextlib import ExitStack 20 18 ··· 206 208 raise ConfigError(arch + ' is not a valid arch') 207 209 208 210 def get_source_tree_ops_from_qemu_config(config_path: str, 209 - cross_compile: Optional[str]) -> tuple[ 211 + cross_compile: Optional[str]) -> Tuple[ 210 212 str, LinuxSourceTreeOperations]: 211 213 # The module name/path has very little to do with where the actual file 212 214 # exists (I learned this through experimentation and could not find it