Skip to content

Commit

Permalink
fix: broken with Python3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang committed Jul 11, 2024
1 parent 50fff29 commit 7ebe2c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openllm/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import re
import shutil

import typing
import pyaml
import questionary
import typer
Expand Down Expand Up @@ -129,7 +130,7 @@ def ensure_repo_updated():
GIT_REPO_RE = re.compile(r'git\+https://(?P<server>.+)/(?P<owner>.+)/(?P<repo>.+?)(@(?P<branch>.+))?$')


def parse_repo_url(repo_url: str, repo_name: str | None = None) -> RepoInfo:
def parse_repo_url(repo_url: str, repo_name: typing.Optional[str] = None) -> RepoInfo:
"""
parse the git repo url to server, owner, repo name, branch
>>> parse_repo_url('git+https://github.com/bentoml/bentovllm@main')
Expand Down

0 comments on commit 7ebe2c1

Please sign in to comment.