Skip to content

Commit 37c93de

Browse files
committed
A couple more small docstring refinements
- Single vs. double backtick error/inconsistency in one place (parameter names were in in doubled backticks, now single) - Undo making "Iterator" in the phrase "Iterator yielding" a reference to collections.abc.Iterator, which is unnecessary and not done anywhere else.
1 parent f43292e commit 37c93de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: git/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -920,8 +920,8 @@ def rename_section(self, section: str, new_name: str) -> "GitConfigParser":
920920
:raise ValueError:
921921
If:
922922
923-
* ``section`` doesn't exist.
924-
* A section with ``new_name`` does already exist.
923+
* `section` doesn't exist.
924+
* A section with `new_name` does already exist.
925925
926926
:return:
927927
This instance

Diff for: git/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ def iter_items(cls, repo: "Repo", *args: Any, **kwargs: Any) -> Iterator[T_Itera
12571257
keyword arguments, subclasses are obliged to to yield all items.
12581258
12591259
:return:
1260-
:class:`~collections.abc.Iterator` yielding Items
1260+
Iterator yielding Items
12611261
"""
12621262
raise NotImplementedError("To be implemented by Subclass")
12631263

0 commit comments

Comments
 (0)