Skip to content

Commit 8b8aa16

Browse files
committed
Improve type of repo.currently_rebasing_on()
1 parent 5aa8c34 commit 8b8aa16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/repo/base.py

+2-2
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
return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs)
11491149

11501150
def archive(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-
def currently_rebasing_on(self) -> Union['SymbolicReference', Commit_ish, None]:
1198+
def currently_rebasing_on(self) -> Commit | None:
11991199
"""
12001200
:return: The commit which is currently being replayed while rebasing.
12011201

0 commit comments

Comments
 (0)