Skip to content

Commit 7417c37

Browse files
authored
Remove false inheritance from io.IncrementalNewlineDecoder (#12871)
1 parent e74d9cf commit 7417c37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/_io.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,13 @@ class StringIO(TextIOWrapper, TextIOBase, _TextIOBase): # type: ignore[misc] #
181181
name: Any
182182
def getvalue(self) -> str: ...
183183

184-
class IncrementalNewlineDecoder(codecs.IncrementalDecoder):
184+
class IncrementalNewlineDecoder:
185185
def __init__(self, decoder: codecs.IncrementalDecoder | None, translate: bool, errors: str = ...) -> None: ...
186186
def decode(self, input: ReadableBuffer | str, final: bool = False) -> str: ...
187187
@property
188188
def newlines(self) -> str | tuple[str, ...] | None: ...
189+
def getstate(self) -> tuple[bytes, int]: ...
190+
def reset(self) -> None: ...
189191
def setstate(self, state: tuple[bytes, int], /) -> None: ...
190192

191193
if sys.version_info >= (3, 10):

0 commit comments

Comments
 (0)