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

Commita1fa850

Browse files
committed
update type of FetchInfo.refresh() to use Literal
1 parent18b75d9 commita1fa850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/remote.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
fromtypingimportAny,Optional,Set,TYPE_CHECKING,Union
4040

41-
fromgit.typesimportPathLike
41+
fromgit.typesimportPathLike,Literal
4242

4343
ifTYPE_CHECKING:
4444
fromgit.repo.baseimportRepo
@@ -232,7 +232,7 @@ class FetchInfo(object):
232232
}
233233

234234
@classmethod
235-
defrefresh(cls)->bool:
235+
defrefresh(cls)->Literal[True]:
236236
"""This gets called by the refresh function (see the top level
237237
__init__).
238238
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp