Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-10-17 10:56:33 +07:00
parent b3c883d061
commit c04f256b22
2 changed files with 4 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
from typing import Literal from typing import Literal
from ..api import Environment from ..api import Environment
from ..http import OpenERPSession from ..http import Session
def check(db: str, uid: int, passwd: str) -> None: ... def check(db: str, uid: int, passwd: str) -> None: ...
def compute_session_token(session: OpenERPSession, env: Environment) -> str | Literal[False]: ... def compute_session_token(session: Session, env: Environment) -> str | Literal[False]: ...
def check_session(session: OpenERPSession, env: Environment) -> bool: ... def check_session(session: Session, env: Environment) -> bool: ...

View File

@@ -18,7 +18,7 @@ PdfFileWriter = BrandedFileWriter
def merge_pdf(pdf_data: Iterable[bytes]) -> bytes: ... def merge_pdf(pdf_data: Iterable[bytes]) -> bytes: ...
def rotate_pdf(pdf: bytes) -> bytes: ... def rotate_pdf(pdf: bytes) -> bytes: ...
def add_banner(pdf_stream: str | BinaryIO, text: str | None = ..., logo: bool = ..., thickness: float = ...) -> BytesIO: def add_banner(pdf_stream: str | BinaryIO, text: str | None = ..., logo: bool = ..., thickness: float = ...) -> BytesIO: ...
class OdooPdfFileReader(PdfFileReader): class OdooPdfFileReader(PdfFileReader):
def getAttachments(self) -> Iterable[tuple[Any, Any]]: ... def getAttachments(self) -> Iterable[tuple[Any, Any]]: ...