From c04f256b22f48242203b38e6b63d519d6d4b00c0 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Mon, 17 Oct 2022 10:56:33 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/service/security.pyi | 6 +++--- odoo-stubs/tools/pdf.pyi | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/odoo-stubs/service/security.pyi b/odoo-stubs/service/security.pyi index 57f3e7c..95b514a 100644 --- a/odoo-stubs/service/security.pyi +++ b/odoo-stubs/service/security.pyi @@ -1,8 +1,8 @@ from typing import Literal from ..api import Environment -from ..http import OpenERPSession +from ..http import Session def check(db: str, uid: int, passwd: str) -> None: ... -def compute_session_token(session: OpenERPSession, env: Environment) -> str | Literal[False]: ... -def check_session(session: OpenERPSession, env: Environment) -> bool: ... +def compute_session_token(session: Session, env: Environment) -> str | Literal[False]: ... +def check_session(session: Session, env: Environment) -> bool: ... diff --git a/odoo-stubs/tools/pdf.pyi b/odoo-stubs/tools/pdf.pyi index 9fb3817..235d2c9 100644 --- a/odoo-stubs/tools/pdf.pyi +++ b/odoo-stubs/tools/pdf.pyi @@ -18,7 +18,7 @@ PdfFileWriter = BrandedFileWriter def merge_pdf(pdf_data: Iterable[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): def getAttachments(self) -> Iterable[tuple[Any, Any]]: ...