mercurial/hgweb/webcommands.py
changeset 48485 ea13dabbe168
parent 46819 d4ba4d51f85f
child 48875 6000f5b25c9b
--- 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,
             }