This avoids some unfortunate overhead from my previous iteration.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
Have you tried using variables annotations? Like:
strtolocal = pycompat.identity # type: (str) -> bytes strfromlocal = pycompat.identity # type: (bytes) -> str
Comment Actions
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.