2121from typing import Dict , Optional , TypedDict , Union
2222from urllib import parse as urlparse
2323
24+ from libvcs .types import StrPath
25+
2426from .. import exc
2527from .base import BaseProject , VCSLocation , convert_pip_url as base_convert_pip_url
2628
@@ -154,7 +156,7 @@ class GitProject(BaseProject):
154156 schemes = ("git" , "git+http" , "git+https" , "git+ssh" , "git+git" , "git+file" )
155157
156158 def __init__ (
157- self , url : str , dir : str , remotes : GitRemotesArgs = None , * args , ** kwargs
159+ self , * , url : str , dir : StrPath , remotes : GitRemotesArgs = None , ** kwargs
158160 ):
159161 """A git repository.
160162
@@ -235,7 +237,7 @@ def __init__(
235237 fetch_url = url ,
236238 push_url = url ,
237239 )
238- super ().__init__ (url , dir , * args , ** kwargs )
240+ super ().__init__ (url = url , dir = dir , ** kwargs )
239241 self .url = self .chomp_protocol (
240242 (
241243 self ._remotes .get ("origin" )
@@ -245,9 +247,9 @@ def __init__(
245247 )
246248
247249 @classmethod
248- def from_pip_url (cls , pip_url , * args , * *kwargs ):
250+ def from_pip_url (cls , pip_url , ** kwargs ):
249251 url , rev = convert_pip_url (pip_url )
250- self = cls (url = url , rev = rev , * args , * *kwargs )
252+ self = cls (url = url , rev = rev , ** kwargs )
251253
252254 return self
253255
0 commit comments