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 diff --git a/tests/config.py b/tests/config.py index c62f252db..50f0d8f50 100644 --- a/tests/config.py +++ b/tests/config.py @@ -1074,7 +1074,7 @@ def does_not_deepcopy(self): "oh": {"dear": {"god": object()}}, # And shallow-copy compound values "shallow": {"objects": ["copy", "okay"]}, - # Will preserve refrences to the innermost dict, sadly. Not + # Will preserve references to the innermost dict, sadly. Not # much we can do without incurring deepcopy problems (or # reimplementing it entirely) "welp": {"cannot": ["have", {"everything": "we want"}]}, @@ -1094,7 +1094,7 @@ def does_not_deepcopy(self): assert c.shallow.objects == c2.shallow.objects err = "Shallow list had same identity!" assert c.shallow.objects is not c2.shallow.objects, err - # Deeply nested non-dict objects are stil problematic, oh well + # Deeply nested non-dict objects are still problematic, oh well err = "Huh, a deeply nested dict-in-a-list had different identity?" assert c.welp.cannot[1] is c2.welp.cannot[1], err err = "Huh, a deeply nested dict-in-a-list value had different identity?" # noqa diff --git a/tests/program.py b/tests/program.py index 3b6765cdd..813ca4db0 100644 --- a/tests/program.py +++ b/tests/program.py @@ -276,7 +276,7 @@ def executor_is_given_access_to_core_args_and_remainder(self): class core_args: def returns_core_args_list(self): - # Mostly so we encode explicity doc'd public API member in tests. + # Mostly so we encode explicitly doc'd public API member in tests. # Spot checks good enough, --help tests include the full deal. core_args = Program().core_args() core_arg_names = [x.names[0] for x in core_args]