build: fix typo in type alias

The declaration is `EnvInitValueType`, but when it's used it's
`EnvValueType`.
pull/9339/head
Dylan Baker 3 years ago
parent df2a437b5b
commit aa03a0c346
  1. 2
      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()

Loading…
Cancel
Save