Skip to content

Commit 58c965d

Browse files
dlatypovshuahkh
authored andcommitted
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 <[email protected]> Reviewed-by: David Gow <[email protected]> Reviewed-by: Brendan Higgins <[email protected]> Tested-by: Brendan Higgins <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent a72fa63 commit 58c965d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/testing/kunit/kunit_kernel.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66
# Author: Felix Guo <[email protected]>
77
# Author: Brendan Higgins <[email protected]>
88

9-
from __future__ import annotations
109
import importlib.util
1110
import logging
1211
import subprocess
1312
import os
1413
import shutil
1514
import signal
16-
from typing import Iterator
17-
from typing import Optional
15+
from typing import Iterator, Optional, Tuple
1816

1917
from contextlib import ExitStack
2018

@@ -208,7 +206,7 @@ def get_source_tree_ops(arch: str, cross_compile: Optional[str]) -> LinuxSourceT
208206
raise ConfigError(arch + ' is not a valid arch')
209207

210208
def get_source_tree_ops_from_qemu_config(config_path: str,
211-
cross_compile: Optional[str]) -> tuple[
209+
cross_compile: Optional[str]) -> Tuple[
212210
str, LinuxSourceTreeOperations]:
213211
# The module name/path has very little to do with where the actual file
214212
# exists (I learned this through experimentation and could not find it

0 commit comments

Comments
 (0)