8000 Add docstrings to protocols in git.types · gitpython-developers/GitPython@2e02b09 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e02b09

Browse files
committed
Add docstrings to protocols in git.types
1 parent 1530fd2 commit 2e02b09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git/types.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,13 @@ class HSH_TD(TypedDict):
194194

195195
@runtime_checkable
196196
class Has_Repo(Protocol):
197+
"""Protocol for having a :attr:`repo` attribute, the repository to operate on."""
198+
197199
repo: "Repo"
198200

199201

200202
@runtime_checkable
201203
class Has_id_attribute(Protocol):
204+
"""Protocol for having :attr:`_id_attribute_` used in iteration and traversal."""
205+
202206
_id_attribute_: str

0 commit comments

Comments
 (0)
0