File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,9 @@ def register(self, cls: Matcher) -> None:
131131 >>> GitURLWithPip(url="git+ssh://git@github.com/tony/AlgoXY.git")
132132 GitURLWithPip(url=git+ssh://git@github.com/tony/AlgoXY.git,
133133 scheme=git+ssh,
134+ user=git,
134135 hostname=github.com,
135136 path=tony/AlgoXY,
136- user=git,
137137 suffix=.git,
138138 matcher=pip-url)
139139 """ # NOQA: E501
Original file line number Diff line number Diff line change @@ -230,9 +230,9 @@ class GitBaseURL(URLProtocol, SkipDefaultFieldsReprMixin):
230230
231231 >>> GitURL(url='git@github.com:vcs-python/libvcs.git')
232232 GitURL(url=git@github.com:vcs-python/libvcs.git,
233+ user=git,
233234 hostname=github.com,
234235 path=vcs-python/libvcs,
235- user=git,
236236 suffix=.git,
237237 matcher=core-git-scp)
238238
@@ -247,10 +247,10 @@ class GitBaseURL(URLProtocol, SkipDefaultFieldsReprMixin):
247247
248248 url : str
249249 scheme : Optional [str ] = None
250+ user : Optional [str ] = None
250251 hostname : Optional [str ] = None
251252 port : Optional [int ] = None
252253 path : Optional [str ] = None
253- user : Optional [str ] = None
254254
255255 # Decoration
256256 suffix : Optional [str ] = None
@@ -302,9 +302,9 @@ def to_url(self) -> str:
302302
303303 >>> git_location
304304 GitURL(url=git@github.com:vcs-python/libvcs.git,
305+ user=git,
305306 hostname=github.com,
306307 path=vcs-python/libvcs,
307- user=git,
308308 suffix=.git,
309309 matcher=core-git-scp)
310310
You can’t perform that action at this time.
0 commit comments