annotate 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
rev   line source
jpayne@69 1 import sys
jpayne@69 2
jpayne@69 3 from typing import Optional, Union, Any, NoReturn
jpayne@69 4
jpayne@69 5 if sys.version_info < (3, 8):
jpayne@69 6 from typing_extensions import Literal
jpayne@69 7 else:
jpayne@69 8 from typing import Literal
jpayne@69 9
jpayne@69 10 BUFFER_SIZE: int
jpayne@69 11
jpayne@69 12 class BGZFile:
jpayne@69 13 def __init__(
jpayne@69 14 self,
jpayne@69 15 filename: str,
jpayne@69 16 mode: Optional[Literal["r", "rb", "a", "ab", "w", "wb", "x", "xb"]],
jpayne@69 17 index: Optional[str],
jpayne@69 18 ) -> None: ...
jpayne@69 19 @property
jpayne@69 20 def name(self) -> str: ...
jpayne@69 21 @property
jpayne@69 22 def index(self) -> Optional[str]: ...
jpayne@69 23 def write(self, data: Union[bytes, bytearray, memoryview]) -> int: ...
jpayne@69 24 def read(self, size: int = ...) -> bytes: ...
jpayne@69 25 @property
jpayne@69 26 def closed(self) -> bool: ...
jpayne@69 27 def close(self) -> None: ...
jpayne@69 28 def __enter__(self) -> BGZFile: ...
jpayne@69 29 def __exit__(self, type, value, traceback) -> Any: ...
jpayne@69 30 def flush(self) -> None: ...
jpayne@69 31 def fileno(self) -> NoReturn: ...
jpayne@69 32 def rewind(self) -> None: ...
jpayne@69 33 def readable(self) -> bool: ...
jpayne@69 34 def writable(self) -> bool: ...
jpayne@69 35 def seekable(self) -> bool: ...
jpayne@69 36 def tell(self) -> int: ...
jpayne@69 37 def seek(self, offset: int, whence: int = ...) -> int: ...
jpayne@69 38 def readline(self, size: int = ...) -> bytes: ...
jpayne@69 39 def __iter__(self) -> BGZFile: ...
jpayne@69 40 def __next__(self) -> bytes: ...