Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 21c2b72

Browse filesBrowse files
committed
Use the :exc: Sphinx role for DeprecationWarning
Python warnings are exceptions, to facilitate converting them to errors by raising them. Thus the more specific :exc: role applies and is a better fit than the more general :class: role.
1 parent 9d096e0 commit 21c2b72
Copy full SHA for 21c2b72

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎git/util.py

Copy file name to clipboardExpand all lines: git/util.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ def list_items(cls, repo: "Repo", *args: Any, **kwargs: Any) -> IterableList[T_I
12851285

12861286

12871287
class IterableClassWatcher(type):
1288-
"""Metaclass that issues :class:`DeprecationWarning` when :class:`git.util.Iterable`
1288+
"""Metaclass that issues :exc:`DeprecationWarning` when :class:`git.util.Iterable`
12891289
is subclassed."""
12901290

12911291
def __init__(cls, name: str, bases: Tuple, clsdict: Dict) -> None:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.