Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit21c2b72

Browse files
committed
Use the :exc: Sphinx role for DeprecationWarning
Python warnings are exceptions, to facilitate converting them toerrors by raising them. Thus the more specific :exc: role appliesand is a better fit than the more general :class: role.
1 parent9d096e0 commit21c2b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/util.py

Lines 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
classIterableClassWatcher(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)

[8]ページ先頭

©2009-2025 Movatter.jp