summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-07-16 13:48:50 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-07-18 08:47:34 -0700
commitcec99fbb3ea770f5d88f3acccb50ebde55ac2e56 (patch)
tree5c2db771dd1a318942d6339fe4e21b7ce7e0f2dd
parent8f9eea89b4c104fee3469ac3f9b93e0c8169967d (diff)
downloadmeson-cec99fbb3ea770f5d88f3acccb50ebde55ac2e56.tar.gz
coredata: remove use of `stringlistify` to do a cast
This is a heavyweight and expensive function to use to verify that we have a string list. Just cast to make mypy happy, we know what we have.
-rw-r--r--mesonbuild/coredata.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py
index d7510b6c5..c286276e9 100644
--- a/mesonbuild/coredata.py
+++ b/mesonbuild/coredata.py
@@ -19,7 +19,6 @@ from .mesonlib import (
MesonException, MachineChoice, PerMachine,
PerMachineDefaultable,
default_prefix,
- stringlistify,
pickle_load
)
@@ -149,8 +148,8 @@ class DependencyCache:
def __calculate_subkey(self, type_: DependencyCacheType) -> T.Tuple[str, ...]:
data: T.Dict[DependencyCacheType, T.List[str]] = {
- DependencyCacheType.PKG_CONFIG: stringlistify(self.__builtins.get_value_for(self.__pkg_conf_key)),
- DependencyCacheType.CMAKE: stringlistify(self.__builtins.get_value_for(self.__cmake_key)),
+ DependencyCacheType.PKG_CONFIG: T.cast('T.List[str]', self.__builtins.get_value_for(self.__pkg_conf_key)),
+ DependencyCacheType.CMAKE: T.cast('T.List[str]', self.__builtins.get_value_for(self.__cmake_key)),
DependencyCacheType.OTHER: [],
}
assert type_ in data, 'Someone forgot to update subkey calculations for a new type'