Update stubs

This commit is contained in:
Trinh Anh Ngoc
2020-05-31 10:28:59 +07:00
parent 476ea45ee0
commit 9b7a719cbe
46 changed files with 111 additions and 112 deletions

View File

@@ -1,12 +1,14 @@
from collections import MutableMapping
from typing import Any, Optional, List, Dict, Generator
from . import api, fields
from .api import Environment
from .modules.registry import Registry
from .sql_db import Cursor
from .tools.safe_eval import safe_eval as safe_eval
from collections import MutableMapping
from typing import Any, Optional, List, Dict, Generator
_logger: Any
_schema: Any
_unlink: Any
regex_order: Any
regex_object_name: Any
regex_pg_name: Any
@@ -31,6 +33,7 @@ class MetaModel(api.Meta):
def _get_addon_name(self, full_name: Any): ...
class NewId:
__slots__: Any = ...
ref: Any = ...
def __init__(self, ref: Optional[Any] = ...) -> None: ...
def __bool__(self): ...
@@ -146,7 +149,7 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
def _read_group_process_groupby(self, gb: Any, query: Any): ...
def _read_group_prepare_data(self, key: Any, value: Any, groupby_dict: Any): ...
def _read_group_format_result(self, data: Any, annotated_groupbys: Any, groupby: Any, domain: Any): ...
def read_group(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...) -> List[Dict]: ...
def read_group(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ...
def _read_group_raw(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ...
def _read_group_resolve_many2one_fields(self, data: Any, fields: Any) -> None: ...
def _inherits_join_add(self, current_model: Any, parent_model_name: Any, query: Any): ...
@@ -227,7 +230,7 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
def ids(self) -> List[int]: ...
_cr: Cursor
_uid: int
_context: Dict
_context: dict
def ensure_one(self): ...
def with_env(self, env: Any) -> BaseModel: ...
def sudo(self, user: Any = ...) -> BaseModel: ...