◐ Shell
clean mode source ↗

Don't return with operand when conceptually void by EliahKagan · Pull Request #1755 · gitpython-developers/GitPython

Expand Up @@ -203,7 +203,8 @@ def __setitem__(self, key: str, value: _T) -> None: def add(self, key: str, value: Any) -> None: if key not in self: super().__setitem__(key, [value]) return None return
super().__getitem__(key).append(value)
def setall(self, key: str, values: List[_T]) -> None: Expand Down Expand Up @@ -579,7 +580,7 @@ def read(self) -> None: # type: ignore[override] :raise IOError: If a file cannot be handled """ if self._is_initialized: return None return self._is_initialized = True
files_to_read: List[Union[PathLike, IO]] = [""] Expand Down Expand Up @@ -697,7 +698,7 @@ def write(self) -> None: a file lock""" self._assure_writable("write") if not self._dirty: return None return
if isinstance(self._file_or_files, (list, tuple)): raise AssertionError( Expand All @@ -711,7 +712,7 @@ def write(self) -> None: "Skipping write-back of configuration file as include files were merged in." + "Set merge_includes=False to prevent this." ) return None return # END stop if we have include files
fp = self._file_or_files Expand Down