Skip to content

Commit 01cc8e2

Browse files
committed
Fix unnecessarily long reference in Tree docstrings
There is no advantage to fully qualifying names in the same module as the entity being documented, but I had accidentally done that.
1 parent f83b056 commit 01cc8e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git/objects/tree.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def __delitem__(self, name: str) -> None:
162162

163163
class Tree(IndexObject, git_diff.Diffable, util.Traversable, util.Serializable):
164164
R"""Tree objects represent an ordered list of :class:`~git.objects.blob.Blob`\s and
165-
other :class:`~git.objects.tree.Tree`\s.
165+
other :class:`Tree`\s.
166166
167167
Tree as a list:
168168
@@ -230,8 +230,8 @@ def join(self, file: str) -> IndexObjUnion:
230230
"""Find the named object in this tree's contents.
231231
232232
:return:
233-
:class:`~git.objects.blob.Blob`, :class:`~git.objects.tree.Tree`,
234-
or :class:`~git.objects.submodule.base.Submodule`
233+
:class:`~git.objects.blob.Blob`, :class:`Tree`, or
234+
:class:`~git.objects.submodule.base.Submodule`
235235
236236
:raise KeyError:
237237
If the given file or tree does not exist in this tree.

0 commit comments

Comments
 (0)