-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
_inputstream.pyi
110 lines (101 loc) · 3.05 KB
/
_inputstream.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
from typing import Any
spaceCharactersBytes: Any
asciiLettersBytes: Any
asciiUppercaseBytes: Any
spacesAngleBrackets: Any
invalid_unicode_no_surrogate: str
invalid_unicode_re: Any
non_bmp_invalid_codepoints: Any
ascii_punctuation_re: Any
charsUntilRegEx: Any
class BufferedStream:
stream: Any
buffer: Any
position: Any
def __init__(self, stream) -> None: ...
def tell(self): ...
def seek(self, pos) -> None: ...
def read(self, bytes): ...
def HTMLInputStream(source, **kwargs): ...
class HTMLUnicodeInputStream:
reportCharacterErrors: Any
newLines: Any
charEncoding: Any
dataStream: Any
def __init__(self, source) -> None: ...
chunk: str
chunkSize: int
chunkOffset: int
errors: Any
prevNumLines: int
prevNumCols: int
def reset(self) -> None: ...
def openStream(self, source): ...
def position(self): ...
def char(self): ...
def readChunk(self, chunkSize: Any | None = ...): ...
def characterErrorsUCS4(self, data) -> None: ...
def characterErrorsUCS2(self, data) -> None: ...
def charsUntil(self, characters, opposite: bool = ...): ...
def unget(self, char) -> None: ...
class HTMLBinaryInputStream(HTMLUnicodeInputStream):
rawStream: Any
numBytesMeta: int
numBytesChardet: int
override_encoding: Any
transport_encoding: Any
same_origin_parent_encoding: Any
likely_encoding: Any
default_encoding: Any
charEncoding: Any
def __init__(
self,
source,
override_encoding: Any | None = ...,
transport_encoding: Any | None = ...,
same_origin_parent_encoding: Any | None = ...,
likely_encoding: Any | None = ...,
default_encoding: str = ...,
useChardet: bool = ...,
) -> None: ...
dataStream: Any
def reset(self) -> None: ...
def openStream(self, source): ...
def determineEncoding(self, chardet: bool = ...): ...
def changeEncoding(self, newEncoding) -> None: ...
def detectBOM(self): ...
def detectEncodingMeta(self): ...
class EncodingBytes(bytes):
def __new__(self, value): ...
def __init__(self, value) -> None: ...
def __iter__(self): ...
def __next__(self): ...
def next(self): ...
def previous(self): ...
def setPosition(self, position) -> None: ...
def getPosition(self): ...
position: Any
def getCurrentByte(self): ...
@property
def currentByte(self): ...
def skip(self, chars=...): ...
def skipUntil(self, chars): ...
def matchBytes(self, bytes): ...
def jumpTo(self, bytes): ...
class EncodingParser:
data: Any
encoding: Any
def __init__(self, data) -> None: ...
def getEncoding(self): ...
def handleComment(self): ...
def handleMeta(self): ...
def handlePossibleStartTag(self): ...
def handlePossibleEndTag(self): ...
def handlePossibleTag(self, endTag): ...
def handleOther(self): ...
def getAttribute(self): ...
class ContentAttrParser:
data: Any
def __init__(self, data) -> None: ...
def parse(self): ...
def lookupEncoding(encoding): ...