Skip to content

Add initial types to base and fun #1191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Closed
Prev Previous commit
Next Next commit
fixes for flake (why doesnt my flake8 show these?)
  • Loading branch information
Yobmod committed Mar 4, 2021
commit 73bc88b03a98d11cabd92d13f45d7c6d6ad40c53
2 changes: 1 addition & 1 deletion git/repo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def iter_commits(self, rev: Optional[TBD] = None, paths: Union[PathLike, List[Pa

return Commit.iter_items(self, rev, paths, **kwargs)

def merge_base(self, *rev: TBD, **kwargs: Any,
def merge_base(self, *rev: TBD, **kwargs: Any
) -> List[Union[SymbolicReference, Commit, 'TagObject', 'Blob', 'Tree', None]]:
"""Find the closest common ancestor for the given revision (e.g. Commits, Tags, References, etc)

Expand Down
2 changes: 1 addition & 1 deletion git/repo/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def short_to_long(odb: 'GitCmdObjectDB', hexsha: AnyStr) -> Optional[bytes]:
# END exception handling


def name_to_object(repo: 'Repo', name: str, return_ref: bool = False,
def name_to_object(repo: 'Repo', name: str, return_ref: bool = False
) -> Union[SymbolicReference, 'Commit', 'TagObject', 'Blob', 'Tree']:
"""
:return: object specified by the given name, hexshas ( short and long )
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
gitdb>=4.0.1,<5
typing-extensions>=3.7.0.0
typing-extensions>=3.7.4.0