Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-04-26 13:07:27 +07:00
parent b62b2b1f07
commit d6926a9fa0

View File

@@ -2,7 +2,7 @@ from abc import ABC, abstractmethod
from collections import defaultdict from collections import defaultdict
from collections.abc import MutableMapping from collections.abc import MutableMapping
from contextlib import nullcontext from contextlib import nullcontext
from typing import Any, Callable, Generator, Iterable, Literal, Mapping, Sequence, TypeVar from typing import Any, Callable, Collection, Generator, Iterable, Literal, Mapping, TypeVar
import werkzeug import werkzeug
from werkzeug.datastructures import Headers from werkzeug.datastructures import Headers
@@ -84,7 +84,7 @@ def route(route: str | list[str] | None = ...,
cors: str = ..., cors: str = ...,
csrf: bool = ..., csrf: bool = ...,
**kw): ... **kw): ...
def _generate_routing_rules(modules: Sequence[str], nodb_only: bool, converters: Any | None = ...) -> Generator[tuple[str, Any], None, None]: ... def _generate_routing_rules(modules: Collection[str], nodb_only: bool, converters: Any | None = ...) -> Generator[tuple[str, Any], None, None]: ...
class FilesystemSessionStore(sessions.FilesystemSessionStore): class FilesystemSessionStore(sessions.FilesystemSessionStore):
def get_session_filename(self, sid: str) -> str: ... def get_session_filename(self, sid: str) -> str: ...
@@ -159,6 +159,9 @@ class Request:
db: str | None db: str | None
env: Environment | None env: Environment | 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'
def __init__(self, httprequest: werkzeug.Request) -> None: ... def __init__(self, httprequest: werkzeug.Request) -> None: ...
def _post_init(self) -> None: ... def _post_init(self) -> None: ...