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

Commit8b8aa16

Browse files
committed
Improve type of repo.currently_rebasing_on()
1 parent5aa8c34 commit8b8aa16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/repo/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ def clone_from(cls, url: PathLike, to_path: PathLike, progress: Optional[Callabl
11481148
returncls._clone(git,url,to_path,GitCmdObjectDB,progress,multi_options,**kwargs)
11491149

11501150
defarchive(self,ostream:Union[TextIO,BinaryIO],treeish:Optional[str]=None,
1151-
prefix:Optional[str]=None,**kwargs:Any)->'Repo':
1151+
prefix:Optional[str]=None,**kwargs:Any)->Repo:
11521152
"""Archive the tree at the given revision.
11531153
11541154
:param ostream: file compatible stream object to which the archive will be written as bytes
@@ -1195,7 +1195,7 @@ def __repr__(self) -> str:
11951195
clazz=self.__class__
11961196
return'<%s.%s %r>'% (clazz.__module__,clazz.__name__,self.git_dir)
11971197

1198-
defcurrently_rebasing_on(self)->Union['SymbolicReference',Commit_ish,None]:
1198+
defcurrently_rebasing_on(self)->Commit|None:
11991199
"""
12001200
:return: The commit which is currently being replayed while rebasing.
12011201

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp