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

Commit2af7640

Browse files
committed
Do a bit of tidying related to unused names
In git.types.- Remove commented-out import of SymbolicReference, which is not used anywhere, nor mentioned in commented-out code.- Add a docstring to _T to note that it is used within GitPython. (Otherwise it looks left over, as no code in git.types uses it.)
1 parentf3b9a69 commit2af7640

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎git/types.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@
4545
fromgit.repoimportRepo
4646
fromgit.objectsimportCommit,Tree,TagObject,Blob
4747

48-
# from git.refs import SymbolicReference
49-
5048
TBD=Any
5149
"""Alias of :class:`~typing.Any`, when a type hint is meant to become more specific."""
5250

5351
_T=TypeVar("_T")
52+
"""Type variable used internally in GitPython."""
5453

5554
Tree_ish=Union["Commit","Tree"]
5655
"""Union of :class:`~git.objects.base.Object`-based types that are inherently tree-ish.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp