Mercurial > hg
annotate mercurial/cext/base85.pyi @ 48815:e9ca736f5b52
cext: remove Python 2 file handling code
Differential Revision: https://phab.mercurial-scm.org/D12226
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 15:45:51 -0700 |
parents | 8dca9051a859 |
children | 9367571fea21 |
rev | line source |
---|---|
46038
8dca9051a859
cext: add .pyi files for C extensions
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1 from typing import Optional |
8dca9051a859
cext: add .pyi files for C extensions
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2 |
8dca9051a859
cext: add .pyi files for C extensions
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
3 version: int |
8dca9051a859
cext: add .pyi files for C extensions
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
4 |
8dca9051a859
cext: add .pyi files for C extensions
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
5 def b85encode(text: bytes, pad: Optional[int]) -> bytes: ... |
8dca9051a859
cext: add .pyi files for C extensions
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
6 def b85decode(text: bytes) -> bytes: ... |