mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
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>
This commit is contained in:
parent
a72fa63043
commit
58c965d84e
1 changed files with 2 additions and 4 deletions
|
@ -6,15 +6,13 @@
|
||||||
# Author: Felix Guo <felixguoxiuping@gmail.com>
|
# Author: Felix Guo <felixguoxiuping@gmail.com>
|
||||||
# Author: Brendan Higgins <brendanhiggins@google.com>
|
# Author: Brendan Higgins <brendanhiggins@google.com>
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import logging
|
import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import signal
|
import signal
|
||||||
from typing import Iterator
|
from typing import Iterator, Optional, Tuple
|
||||||
from typing import Optional
|
|
||||||
|
|
||||||
from contextlib import ExitStack
|
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')
|
raise ConfigError(arch + ' is not a valid arch')
|
||||||
|
|
||||||
def get_source_tree_ops_from_qemu_config(config_path: str,
|
def get_source_tree_ops_from_qemu_config(config_path: str,
|
||||||
cross_compile: Optional[str]) -> tuple[
|
cross_compile: Optional[str]) -> Tuple[
|
||||||
str, LinuxSourceTreeOperations]:
|
str, LinuxSourceTreeOperations]:
|
||||||
# The module name/path has very little to do with where the actual file
|
# 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
|
# exists (I learned this through experimentation and could not find it
|
||||||
|
|
Loading…
Reference in a new issue