[Updated] D11924: pytype: stop excluding webcommands.py
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Fri Dec 17 11:11:54 UTC 2021
Closed by commit rHGea13dabbe168: pytype: stop excluding webcommands.py (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11924?vs=31481&id=31518
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11924/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11924
AFFECTED FILES
mercurial/hgweb/webcommands.py
tests/test-check-pytype.t
CHANGE DETAILS
diff --git a/tests/test-check-pytype.t b/tests/test-check-pytype.t
--- a/tests/test-check-pytype.t
+++ b/tests/test-check-pytype.t
@@ -18,7 +18,6 @@
mercurial/exchange.py # [attribute-error]
mercurial/hgweb/hgweb_mod.py # [attribute-error], [name-error], [wrong-arg-types]
mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr]
-mercurial/hgweb/webcommands.py # [missing-parameter]
mercurial/hgweb/wsgicgi.py # confused values in os.environ
mercurial/httppeer.py # [attribute-error], [wrong-arg-types]
mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error]
@@ -55,7 +54,6 @@
> -x mercurial/exchange.py \
> -x mercurial/hgweb/hgweb_mod.py \
> -x mercurial/hgweb/server.py \
- > -x mercurial/hgweb/webcommands.py \
> -x mercurial/hgweb/wsgicgi.py \
> -x mercurial/httppeer.py \
> -x mercurial/interfaces \
diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -519,6 +519,7 @@
def decodepath(path):
+ # type: (bytes) -> bytes
"""Hook for mapping a path in the repository to a path in the
working copy.
@@ -616,7 +617,9 @@
yield {
b"parity": next(parity),
b"path": path,
+ # pytype: disable=wrong-arg-types
b"emptydirs": b"/".join(emptydirs),
+ # pytype: enable=wrong-arg-types
b"basename": d,
}
To: mharbison72, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211217/893993ba/attachment-0002.html>
More information about the Mercurial-patches
mailing list