diff mercurial/hgweb/webcommands.py @ 51304:f15cb5111a1e

pytype: move some type comment to proper annotation We support direct type annotations now, while pytype is starting to complains about them.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Dec 2023 21:29:34 +0100
parents 18c8c18993f0
children 99632adff795 493034cc3265
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Wed Dec 20 20:13:22 2023 +0100
+++ b/mercurial/hgweb/webcommands.py	Tue Dec 19 21:29:34 2023 +0100
@@ -516,8 +516,7 @@
 rev = webcommand(b'rev')(changeset)
 
 
-def decodepath(path):
-    # type: (bytes) -> bytes
+def decodepath(path: bytes) -> bytes:
     """Hook for mapping a path in the repository to a path in the
     working copy.