File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ from collections.abc import Mapping
3
3
from compression ._common import _streams
4
4
from compression .zstd import ZstdDict
5
5
from io import TextIOWrapper , _WrappedBuffer
6
- from typing import Literal , overload , type_check_only
6
+ from typing import Literal , Protocol , overload , type_check_only
7
7
from typing_extensions import TypeAlias
8
8
9
9
from _zstd import ZstdCompressor , _ZstdCompressorFlushBlock , _ZstdCompressorFlushFrame
@@ -16,11 +16,11 @@ _ReadTextMode: TypeAlias = Literal["rt"]
16
16
_WriteTextMode : TypeAlias = Literal ["wt" , "xt" , "at" ]
17
17
18
18
@type_check_only
19
- class _FileBinaryRead (_streams ._Reader ):
19
+ class _FileBinaryRead (_streams ._Reader , Protocol ):
20
20
def close (self ) -> None : ...
21
21
22
22
@type_check_only
23
- class _FileBinaryWrite (SupportsWrite [bytes ]):
23
+ class _FileBinaryWrite (SupportsWrite [bytes ], Protocol ):
24
24
def close (self ) -> None : ...
25
25
26
26
class ZstdFile (_streams .BaseStream ):
You can’t perform that action at this time.
0 commit comments