Skip to content

Commit c527b8f

Browse files
committed
Change :returns: to :return:
:return: was used extensively, while :returns: only appears in two docstrings.
1 parent f444470 commit c527b8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/diff.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def rename_to(self) -> Optional[str]:
467467
@property
468468
def renamed(self) -> bool:
469469
"""
470-
:returns: True if the blob of our diff has been renamed
470+
:return: True if the blob of our diff has been renamed
471471
472472
:note: This property is deprecated.
473473
Please use the :attr:`renamed_file` property instead.
@@ -476,7 +476,7 @@ def renamed(self) -> bool:
476476

477477
@property
478478
def renamed_file(self) -> bool:
479-
""":returns: True if the blob of our diff has been renamed"""
479+
""":return: True if the blob of our diff has been renamed"""
480480
return self.rename_from != self.rename_to
481481

482482
@classmethod

0 commit comments

Comments
 (0)