From 7ee68d343e0b82bb40dd97b04c09a510c0f2c857 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Mon, 5 Jun 2023 15:51:58 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/http.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/odoo-stubs/http.pyi b/odoo-stubs/http.pyi index a718177..81a4ca8 100644 --- a/odoo-stubs/http.pyi +++ b/odoo-stubs/http.pyi @@ -107,7 +107,7 @@ class FilesystemSessionStore(sessions.FilesystemSessionStore): def save(self, session: Session) -> None: ... def get(self, sid: str) -> Session: ... def rotate(self, session: Session, env: Environment) -> None: ... - def vacuum(self) -> None: ... + def vacuum(self, max_lifetime=...) -> None: ... class Session(MutableMapping): can_save: bool @@ -173,7 +173,7 @@ class Response(werkzeug.Response): key: str, value: str = ..., max_age: Any | None = ..., - expires: Any | None = ..., + expires: int = ..., path: str = ..., domain: str | None = ..., secure: bool = ..., @@ -192,7 +192,7 @@ class FutureResponse: key: str, value: str = ..., max_age: Any | None = ..., - expires: Any | None = ..., + expires: int = ..., path: str = ..., domain: str | None = ..., secure: bool = ...,