Skip to content

Commit 9bcbbec

Browse files
committed
fix(parser): More fixes for matchers
1 parent 6c1242a commit 9bcbbec

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

libvcs/parse/hg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class HgURL(URLProtocol, SkipDefaultFieldsReprMixin):
176176

177177
matcher: Optional[str] = None
178178
# name of the :class:`Matcher`
179-
matchers = MatcherRegistry = MatcherRegistry(
179+
matchers: MatcherRegistry = MatcherRegistry(
180180
_matchers={m.label: m for m in DEFAULT_MATCHERS}
181181
)
182182

tests/parse/test_git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_git_url_extension_pip(
142142
git_repo: GitProject,
143143
):
144144
class GitURLWithPip(GitBaseURL):
145-
matchers = MatcherRegistry = MatcherRegistry(
145+
matchers: MatcherRegistry = MatcherRegistry(
146146
_matchers={m.label: m for m in [*DEFAULT_MATCHERS, *PIP_DEFAULT_MATCHERS]}
147147
)
148148

@@ -255,7 +255,7 @@ def test_git_revs(
255255
git_url_kwargs: GitURLKwargs,
256256
):
257257
class GitURLWithPip(GitURL):
258-
matchers = MatcherRegistry = MatcherRegistry(
258+
matchers: MatcherRegistry = MatcherRegistry(
259259
_matchers={m.label: m for m in [*DEFAULT_MATCHERS, *PIP_DEFAULT_MATCHERS]}
260260
)
261261

tests/parse/test_hg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_hg_url_extension_pip(
107107
hg_repo: MercurialProject,
108108
):
109109
class HgURLWithPip(HgURL):
110-
matchers = MatcherRegistry = MatcherRegistry(
110+
matchers: MatcherRegistry = MatcherRegistry(
111111
_matchers={m.label: m for m in [*DEFAULT_MATCHERS, *PIP_DEFAULT_MATCHERS]}
112112
)
113113

tests/parse/test_svn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_svn_url_extension_pip(
124124
svn_repo: SubversionProject,
125125
):
126126
class SvnURLWithPip(SvnURL):
127-
matchers = MatcherRegistry = MatcherRegistry(
127+
matchers: MatcherRegistry = MatcherRegistry(
128128
_matchers={m.label: m for m in [*DEFAULT_MATCHERS, *PIP_DEFAULT_MATCHERS]}
129129
)
130130

0 commit comments

Comments
 (0)