Skip to content

Commit f59314b

Browse files
committed
cli/sync(refactor[typing]): Tighten exception signature
why: Remove unused object parameters for a clearer, specific API. what: - Narrow CouldNotGuessVCSFromURL.__init__ to repo_url only
1 parent 78c45c9 commit f59314b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vcspull/cli/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ def guess_vcs(url: str) -> VCSLiteral | None:
825825
class CouldNotGuessVCSFromURL(exc.VCSPullException):
826826
"""Raised when no VCS could be guessed from a URL."""
827827

828-
def __init__(self, repo_url: str, *args: object, **kwargs: object) -> None:
828+
def __init__(self, repo_url: str) -> None:
829829
return super().__init__(f"Could not automatically determine VCS for {repo_url}")
830830

831831

0 commit comments

Comments
 (0)