Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 51284: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 | 493034cc3265 99632adff795 |
comparison
equal
deleted
inserted
replaced
51283:81224afd938d | 51284:f15cb5111a1e |
---|---|
514 | 514 |
515 | 515 |
516 rev = webcommand(b'rev')(changeset) | 516 rev = webcommand(b'rev')(changeset) |
517 | 517 |
518 | 518 |
519 def decodepath(path): | 519 def decodepath(path: bytes) -> bytes: |
520 # type: (bytes) -> bytes | |
521 """Hook for mapping a path in the repository to a path in the | 520 """Hook for mapping a path in the repository to a path in the |
522 working copy. | 521 working copy. |
523 | 522 |
524 Extensions (e.g., largefiles) can override this to remap files in | 523 Extensions (e.g., largefiles) can override this to remap files in |
525 the virtual file system presented by the manifest command below.""" | 524 the virtual file system presented by the manifest command below.""" |