Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-04-26 13:12:40 +07:00
parent c76bf12a47
commit 2978b9a921

View File

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