build: fix typo in type alias

The declaration is `EnvInitValueType`, but when it's used it's
`EnvValueType`.
This commit is contained in:
Dylan Baker 2022-03-02 10:05:18 -08:00
parent df2a437b5b
commit aa03a0c346
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ class ExtractedObjects(HoldableObject):
EnvInitValueType = T.Dict[str, T.Union[str, T.List[str]]] EnvInitValueType = T.Dict[str, T.Union[str, T.List[str]]]
class EnvironmentVariables(HoldableObject): 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: 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]] = [] 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() # The set of all env vars we have operations for. Only used for self.has_name()