Skip to content

Commit

Permalink
jedi_bundle's first type hint
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Shiklomanov <[email protected]>
  • Loading branch information
asewnath and ashiklom authored Jun 27, 2024
1 parent a99041d commit b613cd7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/jedi_bundle/utils/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ def repo_is_reachable(logger, url, username, token):
# --------------------------------------------------------------------------------------------------


def repo_has_branch(logger, url, branch, is_tag=False, is_commit=False):
def repo_has_branch(
logger: Logger,
url: str,
branch: str,
is_tag: bool = False,
is_commit: bool = False
) -> bool:

if is_commit:
commit_url = url + '/commits/' + branch
Expand Down

0 comments on commit b613cd7

Please sign in to comment.