Show More
@@ -12,6 +12,21 from typing import ( | |||
|
12 | 12 | version: int |
|
13 | 13 | versionerrortext: str |
|
14 | 14 | |
|
15 | # From charencode.c | |
|
16 | ||
|
17 | # Note: the first 'bytes' arg of isasciistr() can be typed as 'Buffer' from the | |
|
18 | # typing_extensions backport, once the related bug is fixed in pytype, or pytype | |
|
19 | # is run under py3.12. The arg for asciilower(), asciiupper() and | |
|
20 | # jsonescapeu8fast() is checked specifically for the 'bytes' type. The 'bytes' | |
|
21 | # return is an instance of 'bytes', not an alias for 'Buffer'. | |
|
22 | # | |
|
23 | # https://github.com/google/pytype/issues/1772 | |
|
24 | def isasciistr(s: bytes) -> bool: ... | |
|
25 | def asciilower(s: bytes) -> bytes: ... | |
|
26 | def asciiupper(s: bytes) -> bytes: ... | |
|
27 | def jsonescapeu8fast(u8chars: bytes, paranoid: bool) -> bytes: ... | |
|
28 | ||
|
29 | ||
|
15 | 30 | class DirstateItem: |
|
16 | 31 | __doc__: str |
|
17 | 32 |
General Comments 0
You need to be logged in to leave comments.
Login now