Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/site-packages/pysam/libcbgzf.pyi @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 69:33d812a61356 |
---|---|
1 import sys | |
2 | |
3 from typing import Optional, Union, Any, NoReturn | |
4 | |
5 if sys.version_info < (3, 8): | |
6 from typing_extensions import Literal | |
7 else: | |
8 from typing import Literal | |
9 | |
10 BUFFER_SIZE: int | |
11 | |
12 class BGZFile: | |
13 def __init__( | |
14 self, | |
15 filename: str, | |
16 mode: Optional[Literal["r", "rb", "a", "ab", "w", "wb", "x", "xb"]], | |
17 index: Optional[str], | |
18 ) -> None: ... | |
19 @property | |
20 def name(self) -> str: ... | |
21 @property | |
22 def index(self) -> Optional[str]: ... | |
23 def write(self, data: Union[bytes, bytearray, memoryview]) -> int: ... | |
24 def read(self, size: int = ...) -> bytes: ... | |
25 @property | |
26 def closed(self) -> bool: ... | |
27 def close(self) -> None: ... | |
28 def __enter__(self) -> BGZFile: ... | |
29 def __exit__(self, type, value, traceback) -> Any: ... | |
30 def flush(self) -> None: ... | |
31 def fileno(self) -> NoReturn: ... | |
32 def rewind(self) -> None: ... | |
33 def readable(self) -> bool: ... | |
34 def writable(self) -> bool: ... | |
35 def seekable(self) -> bool: ... | |
36 def tell(self) -> int: ... | |
37 def seek(self, offset: int, whence: int = ...) -> int: ... | |
38 def readline(self, size: int = ...) -> bytes: ... | |
39 def __iter__(self) -> BGZFile: ... | |
40 def __next__(self) -> bytes: ... |