File: libcbgzf.pyi

package info (click to toggle)
python-pysam 0.23.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,468 kB
  • sloc: ansic: 158,936; python: 8,604; sh: 338; makefile: 264; perl: 41
file content (40 lines) | stat: -rw-r--r-- 1,230 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import sys

from typing import Optional, Union, Any, NoReturn

if sys.version_info < (3, 8):
    from typing_extensions import Literal
else:
    from typing import Literal

BUFFER_SIZE: int

class BGZFile:
    def __init__(
        self,
        filename: str,
        mode: Optional[Literal["r", "rb", "a", "ab", "w", "wb", "x", "xb"]],
        index: Optional[str],
    ) -> None: ...
    @property
    def name(self) -> str: ...
    @property
    def index(self) -> Optional[str]: ...
    def write(self, data: Union[bytes, bytearray, memoryview]) -> int: ...
    def read(self, size: int = ...) -> bytes: ...
    @property
    def closed(self) -> bool: ...
    def close(self) -> None: ...
    def __enter__(self) -> BGZFile: ...
    def __exit__(self, type, value, traceback) -> Any: ...
    def flush(self) -> None: ...
    def fileno(self) -> NoReturn: ...
    def rewind(self) -> None: ...
    def readable(self) -> bool: ...
    def writable(self) -> bool: ...
    def seekable(self) -> bool: ...
    def tell(self) -> int: ...
    def seek(self, offset: int, whence: int = ...) -> int: ...
    def readline(self, size: int = ...) -> bytes: ...
    def __iter__(self) -> BGZFile: ...
    def __next__(self) -> bytes: ...