Update stubs

This commit is contained in:
Trinh Anh Ngoc
2024-09-09 21:22:26 +07:00
parent 7d96c3b8e8
commit 6ce63f0f58
3 changed files with 9 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ class Stream:
self,
as_attachment: bool | None = ...,
immutable: bool | None = ...,
content_security_policy: str = ...,
**send_file_kwargs
) -> werkzeug.Response: ...

View File

@@ -273,6 +273,9 @@ class BaseModel(metaclass=MetaModel):
def _read_group_format_result_properties(
self, rows_dict: Iterable[dict], group: str
) -> None: ...
def _read_group_get_annoted_groupby(
self, groupby: str | list[str], lazy: bool
) -> dict: ...
def read_group(
self,
domain: list,

View File

@@ -8,6 +8,7 @@ from xmlrpc import client as xmlrpclib
import requests
from odoo.addons.base.models.res_users import Users
from urllib3.util import Url
from websocket import WebSocket
from ..api import Environment
@@ -194,6 +195,10 @@ class HttpCase(TransactionCase):
xmlrpc_object: xmlrpclib.ServerProxy
opener: Opener
def setUp(self) -> None: ...
def parse_http_location(self, location: str) -> Url: ...
def assertURLEqual(
self, test_url: str, truth_url: str, message: str | None = ...
) -> None: ...
def url_open(
self,
url: str,