diff --git a/dvc/utils/studio.py b/dvc/utils/studio.py index 8900d77d3..3d179589e 100644 --- a/dvc/utils/studio.py +++ b/dvc/utils/studio.py @@ -128,7 +128,7 @@ def get_subrepo_relpath(repo: "Repo") -> str: return "" if relpath == "." else relpath -def get_repo_url(repo: "Repo", git_remote: Optional[str] = None) -> Optional[str]: +def get_repo_url(repo: "Repo", git_remote: Optional[str] = None) -> str | None: from dulwich.porcelain import get_remote_repo from dvc.env import DVC_EXP_GIT_REMOTE