From aa03a0c346720cd78135c05fafc5671b5e108d5b Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 2 Mar 2022 10:05:18 -0800 Subject: [PATCH] build: fix typo in type alias The declaration is `EnvInitValueType`, but when it's used it's `EnvValueType`. --- mesonbuild/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 54ad74018..ecbc1d981 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -455,7 +455,7 @@ class ExtractedObjects(HoldableObject): EnvInitValueType = T.Dict[str, T.Union[str, T.List[str]]] class EnvironmentVariables(HoldableObject): - def __init__(self, values: T.Optional[EnvValueType] = None, + def __init__(self, values: T.Optional[EnvInitValueType] = None, init_method: Literal['set', 'prepend', 'append'] = 'set', separator: str = os.pathsep) -> None: self.envvars: T.List[T.Tuple[T.Callable[[T.Dict[str, str], str, T.List[str], str], str], str, T.List[str], str]] = [] # The set of all env vars we have operations for. Only used for self.has_name()