Skip to content

Commit b6740d0

Browse files
authored
use _compression.BaseStream for lzma.LZMAFile (#11166)
related to #3968
1 parent c390c70 commit b6740d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/lzma.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import io
1+
from _compression import BaseStream
22
from _typeshed import ReadableBuffer, StrOrBytesPath
33
from collections.abc import Mapping, Sequence
44
from typing import IO, Any, TextIO, overload
@@ -104,7 +104,7 @@ class LZMACompressor:
104104

105105
class LZMAError(Exception): ...
106106

107-
class LZMAFile(io.BufferedIOBase, IO[bytes]): # type: ignore[misc] # incompatible definitions of writelines in the base classes
107+
class LZMAFile(BaseStream, IO[bytes]): # type: ignore[misc] # incompatible definitions of writelines in the base classes
108108
def __init__(
109109
self,
110110
filename: _PathOrFile | None = None,

0 commit comments

Comments
 (0)