Skip to content

Commit 85889cd

Browse files
committed
Refine how tree[subscript] is introduced
This drops the newly introduced precision in Python terminology, likening usage to that of a list or dict (experienced Python users will already know about sequences and mappings, and inexperienced users will, with these terms, be able to understand what is said). Note that this does not undo the broader effect of the previous commit, which is to make clear that subscripting a tree supports both list-like and dict-like usage, not just list-like usage.
1 parent 6f3a20f commit 85889cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: git/objects/tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ 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
165165
other :class:`Tree`\s.
166166
167-
Subscripting is supported, as with a mapping or sequence:
167+
Subscripting is supported, as with a list or dict:
168168
169169
* Access a specific blob using the ``tree["filename"]`` notation.
170170
* You may likewise access by index, like ``blob = tree[0]``.

0 commit comments

Comments
 (0)