yuja added a comment.
> strtolocal = pycompat.identity # type: (str) -> bytes > strfromlocal = pycompat.identity # type: (bytes) -> str `# type: Callable[[str], bytes]` might work. pytype complained `# type: ... -> ...` is an invalid type comment. REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7380/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7380 To: durin42, #hg-reviewers Cc: yuja, dlax, mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel