Skip to content

Commit e13f7e4

Browse files
committed
build_kernel: Fix a lint warning
Change-Id: Ibf4be3088b768c6ca0de1e0f40b0fab0bbfe8db5
1 parent 7cc47f5 commit e13f7e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build_kernel/builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from build_kernel.utils.logging import LOGI
66
from build_kernel.utils.make import Make
77
from build_kernel.utils.mkdtboimg import Dtbo, parse_create_args, parse_dt_entries
8-
from typing import List, Union
8+
from typing import List, Optional, Union
99

1010
class Builder:
1111
"""Class representing a build instance."""
@@ -37,7 +37,7 @@ def dumpvars(self):
3737
"""Dump the kernel variables to stdout."""
3838
return dumpvars(self.device)
3939

40-
def build(self, target: Union[str, List[str]] = None):
40+
def build(self, target: Union[str, Optional[List[str]]] = None):
4141
"""Build the kernel and create an AnyKernel3 flashable zip."""
4242
LOGI("Building defconfig")
4343
self.make.run([self.device.TARGET_KERNEL_CONFIG] + self.device.TARGET_KERNEL_FRAGMENTS)

0 commit comments

Comments
 (0)