21
21
from typing import Dict , Optional , TypedDict , Union
22
22
from urllib import parse as urlparse
23
23
24
+ from libvcs .types import StrPath
25
+
24
26
from .. import exc
25
27
from .base import BaseProject , VCSLocation , convert_pip_url as base_convert_pip_url
26
28
@@ -154,7 +156,7 @@ class GitProject(BaseProject):
154
156
schemes = ("git" , "git+http" , "git+https" , "git+ssh" , "git+git" , "git+file" )
155
157
156
158
def __init__ (
157
- self , url : str , dir : str , remotes : GitRemotesArgs = None , * args , ** kwargs
159
+ self , * , url : str , dir : StrPath , remotes : GitRemotesArgs = None , ** kwargs
158
160
):
159
161
"""A git repository.
160
162
@@ -235,7 +237,7 @@ def __init__(
235
237
fetch_url = url ,
236
238
push_url = url ,
237
239
)
238
- super ().__init__ (url , dir , * args , ** kwargs )
240
+ super ().__init__ (url = url , dir = dir , ** kwargs )
239
241
self .url = self .chomp_protocol (
240
242
(
241
243
self ._remotes .get ("origin" )
@@ -245,9 +247,9 @@ def __init__(
245
247
)
246
248
247
249
@classmethod
248
- def from_pip_url (cls , pip_url , * args , * *kwargs ):
250
+ def from_pip_url (cls , pip_url , ** kwargs ):
249
251
url , rev = convert_pip_url (pip_url )
250
- self = cls (url = url , rev = rev , * args , * *kwargs )
252
+ self = cls (url = url , rev = rev , ** kwargs )
251
253
252
254
return self
253
255
0 commit comments