def METHOD_NAME(
    self,
    cmd: str,
    fp: SupportsRead[bytes],
    blocksize: int = 8192,
    callback: Callable[[bytes], object] | None = None,
    rest: int | str | None = None,
) -> str: ...