Mercurial > public > mercurial-scm > hg
diff mercurial/match.py @ 51753:a1e4fa9330d8
typing: add type hints around the matcher for subrepo archiving
Mostly this is meant to try to smoke out any other potential issues around the
matcher, since these args were mostly previously treated as `Any`, and therefore
checking wasn't done.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 01 Aug 2024 11:43:10 -0400 |
parents | bc94cbb49b30 |
children | f4733654f144 |
line wrap: on
line diff
--- a/mercurial/match.py Thu Aug 01 01:52:11 2024 -0400 +++ b/mercurial/match.py Thu Aug 01 11:43:10 2024 -0400 @@ -1071,7 +1071,7 @@ sub/x.txt: No such file """ - def __init__(self, path, matcher): + def __init__(self, path: bytes, matcher: basematcher) -> None: super(subdirmatcher, self).__init__() self._path = path self._matcher = matcher