diff --git a/invoke/config.py b/invoke/config.py index 54962623a..298c6fe9e 100644 --- a/invoke/config.py +++ b/invoke/config.py @@ -116,7 +116,7 @@ def __getattr__(self, key: str) -> Any: try: return self._get(key) except KeyError: - # Proxy most special vars to config for dict procotol. + # Proxy most special vars to config for dict protocol. if key in self._proxies: return getattr(self._config, key) # Otherwise, raise useful AttributeError to follow getattr proto. diff --git a/invoke/runners.py b/invoke/runners.py index c59481399..956e76f12 100644 --- a/invoke/runners.py +++ b/invoke/runners.py @@ -1399,7 +1399,7 @@ def process_is_finished(self) -> bool: def returncode(self) -> Optional[int]: if self.using_pty: # No subprocess.returncode available; use WIFEXITED/WIFSIGNALED to - # determine whch of WEXITSTATUS / WTERMSIG to use. + # determine which of WEXITSTATUS / WTERMSIG to use. # TODO: is it safe to just say "call all WEXITSTATUS/WTERMSIG and # return whichever one of them is nondefault"? Probably not? # NOTE: doing this in an arbitrary order should be safe since only