We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cc47f5 commit e13f7e4Copy full SHA for e13f7e4
1 file changed
build_kernel/builder.py
@@ -5,7 +5,7 @@
5
from build_kernel.utils.logging import LOGI
6
from build_kernel.utils.make import Make
7
from build_kernel.utils.mkdtboimg import Dtbo, parse_create_args, parse_dt_entries
8
-from typing import List, Union
+from typing import List, Optional, Union
9
10
class Builder:
11
"""Class representing a build instance."""
@@ -37,7 +37,7 @@ def dumpvars(self):
37
"""Dump the kernel variables to stdout."""
38
return dumpvars(self.device)
39
40
- def build(self, target: Union[str, List[str]] = None):
+ def build(self, target: Union[str, Optional[List[str]]] = None):
41
"""Build the kernel and create an AnyKernel3 flashable zip."""
42
LOGI("Building defconfig")
43
self.make.run([self.device.TARGET_KERNEL_CONFIG] + self.device.TARGET_KERNEL_FRAGMENTS)
0 commit comments