Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion invoke/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion invoke/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}]},
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down