-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BZ2Compressor and BZ2Decompressor live in the _bz2 module (#12976)
- Loading branch information
Showing
7 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from _typeshed import ReadableBuffer | ||
from typing import final | ||
|
||
@final | ||
class BZ2Compressor: | ||
def __init__(self, compresslevel: int = 9) -> None: ... | ||
def compress(self, data: ReadableBuffer, /) -> bytes: ... | ||
def flush(self) -> bytes: ... | ||
|
||
@final | ||
class BZ2Decompressor: | ||
def decompress(self, data: ReadableBuffer, max_length: int = -1) -> bytes: ... | ||
@property | ||
def eof(self) -> bool: ... | ||
@property | ||
def needs_input(self) -> bool: ... | ||
@property | ||
def unused_data(self) -> bytes: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters