Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/webcommands.py @ 48485:ea13dabbe168
pytype: stop excluding webcommands.py
I have no idea why, but asserting that each value added to `emptydirs` is not
None didn't fix this:
File "/mnt/c/Users/Matt/hg/mercurial/hgweb/webcommands.py", line 621, in dirlist:
Function bytes.join was called with the wrong arguments [wrong-arg-types]
Expected: (self, iterable: Iterable[bytes])
Actually passed: (self, iterable: List[None])
Differential Revision: https://phab.mercurial-scm.org/D11924
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 13 Dec 2021 22:46:43 -0500 |
parents | d4ba4d51f85f |
children | 6000f5b25c9b |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Mon Dec 13 20:45:31 2021 -0500 +++ b/mercurial/hgweb/webcommands.py Mon Dec 13 22:46:43 2021 -0500 @@ -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, }