# HG changeset patch # User Matt Harbison # Date 1721349275 14400 # Node ID 45828bc3c3d63afa83249f667b0093dbd9a2b1c8 # Parent f841de63a5aa9996c71a5a12cb2e81c2db8845b9 typing: add type hints to `mercurial.verify._normpath()` Since 10db46e128d4, pytype almost figured this out, going from `Any` -> `_T0`, but the intent is obvious. diff -r f841de63a5aa -r 45828bc3c3d6 mercurial/verify.py --- a/mercurial/verify.py Thu Jul 18 20:16:31 2024 -0400 +++ b/mercurial/verify.py Thu Jul 18 20:34:35 2024 -0400 @@ -31,7 +31,7 @@ return v.verify() -def _normpath(f): +def _normpath(f: bytes) -> bytes: # under hg < 2.4, convert didn't sanitize paths properly, so a # converted repo may contain repeated slashes while b'//' in f: