|
22 | 22 | from .mesonlib import ( |
23 | 23 | HoldableObject, SecondLevelHolder, |
24 | 24 | File, MesonException, MachineChoice, PerMachine, OrderedSet, listify, |
25 | | - extract_as_list, typeslistify, stringlistify, classify_unity_sources, |
| 25 | + extract_as_list, typeslistify, classify_unity_sources, |
26 | 26 | get_filenames_templates_dict, substitute_values, has_path_sep, |
27 | 27 | is_parent_path, relpath, PerMachineDefaultable, |
28 | 28 | MesonBugException, EnvironmentVariables, pickle_load, lazy_property, |
@@ -85,7 +85,7 @@ class BuildTargetKeywordArguments(TypedDict, total=False): |
85 | 85 | install_dir: T.List[T.Union[str, Literal[False]]] |
86 | 86 | install_mode: FileMode |
87 | 87 | install_rpath: str |
88 | | - install_tag: T.List[str] |
| 88 | + install_tag: T.List[T.Optional[str]] |
89 | 89 | language_args: T.DefaultDict[str, T.List[str]] |
90 | 90 | link_args: T.List[str] |
91 | 91 | link_depends: T.List[T.Union[str, File, CustomTarget, CustomTargetIndex]] |
@@ -1295,7 +1295,7 @@ def process_kwargs(self, kwargs: BuildTargetKeywordArguments) -> None: |
1295 | 1295 | self.install_dir = typeslistify(kwargs.get('install_dir', []), |
1296 | 1296 | (str, bool)) |
1297 | 1297 | self.install_mode = kwargs.get('install_mode', None) |
1298 | | - self.install_tag = stringlistify(kwargs.get('install_tag', [None])) |
| 1298 | + self.install_tag: T.List[T.Optional[str]] = kwargs.get('install_tag') or [None] |
1299 | 1299 | self.extra_files = kwargs.get('extra_files', []) |
1300 | 1300 | self.install_rpath: str = kwargs.get('install_rpath', '') |
1301 | 1301 | self.build_rpath = kwargs.get('build_rpath', '') |
|
0 commit comments