Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-10-17 10:58:05 +07:00
parent 7e1f4b853a
commit 01c73c9cce
3 changed files with 2 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Callable, TypeVar
from typing import Callable, TypeVar
from ..sql_db import Cursor

View File

@@ -17,7 +17,6 @@ from ..models import BaseModel
from ..modules.registry import Registry
from ..sql_db import BaseCursor, Cursor
from ..tools import profiler
from ..tools._vendor.sessions import Session
from ..tools.profiler import Profiler
_T = TypeVar('_T')

View File

@@ -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]]: ...