Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-04-26 13:14:31 +07:00
parent 0c43b9e7fd
commit 772b397de2

View File

@@ -1,5 +1,5 @@
from logging import Logger from logging import Logger
from typing import Any, Callable, Generator, Sequence, TypeVar from typing import Any, Callable, Collection, Generator, TypeVar
import werkzeug import werkzeug
from werkzeug.exceptions import NotFound from werkzeug.exceptions import NotFound
@@ -37,6 +37,9 @@ class WebRequest:
endpoint_arguments: Any endpoint_arguments: Any
auth_method: str | None auth_method: str | None
website: 'odoo.model.website' website: 'odoo.model.website'
website_routing: int
is_frontend: bool
is_frontend_multilang: bool
lang: 'odoo.model.res_lang' lang: 'odoo.model.res_lang'
_cr: Cursor | None _cr: Cursor | None
_uid: int | None _uid: int | None
@@ -125,7 +128,7 @@ class EndPoint:
def _as_tuple(self) -> tuple[Callable, dict]: ... def _as_tuple(self) -> tuple[Callable, dict]: ...
def __repr__(self) -> str: ... def __repr__(self) -> str: ...
def _generate_routing_rules(modules: Sequence[str], nodb_only: bool, converters: Any | None = ...) -> Generator[tuple[str, EndPoint, dict], None, None]: ... def _generate_routing_rules(modules: Collection[str], nodb_only: bool, converters: Any | None = ...) -> Generator[tuple[str, EndPoint, dict], None, None]: ...
class AuthenticationError(Exception): ... class AuthenticationError(Exception): ...
class SessionExpiredException(Exception): ... class SessionExpiredException(Exception): ...