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

Commit2e02b09

Browse files
committed
Add docstrings to protocols in git.types
1 parent1530fd2 commit2e02b09

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
classHas_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
classHas_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)

[8]ページ先頭

©2009-2026 Movatter.jp