[alt] typing: accept buffers in IO.write (#9861)

Co-authored-by: JelleZijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Alex Waygood
2023-03-15 07:42:10 +00:00
committed by GitHub
parent b7d1079e86
commit 21d7f7153b
7 changed files with 68 additions and 12 deletions

View File

@@ -104,7 +104,7 @@ class LZMACompressor:
class LZMAError(Exception): ...
class LZMAFile(io.BufferedIOBase, IO[bytes]):
class LZMAFile(io.BufferedIOBase, IO[bytes]): # type: ignore[misc] # incompatible definitions of writelines in the base classes
def __init__(
self,
filename: _PathOrFile | None = None,