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

git/config.py

Lines changed: 2 additions & 2 deletions
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

git/util.py

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy