From 1de59c6d618bca4bd03aaf8ba6f7f1d56748d14a Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Sun, 31 May 2020 11:00:34 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/models.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/odoo-stubs/models.pyi b/odoo-stubs/models.pyi index 69a6d55..ea6e19a 100644 --- a/odoo-stubs/models.pyi +++ b/odoo-stubs/models.pyi @@ -59,9 +59,9 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})): _name: str = ... _description: str = ... _custom: bool = ... - _inherit: List[str] + _inherit: Any _inherits: Dict[str, str] - _table: Any = ... + _table: str = ... _sequence: Any = ... _sql_constraints: list = ... _rec_name: Any = ... @@ -244,7 +244,7 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})): def ensure_one(self): ... def with_env(self, env: Any) -> BaseModel: ... def sudo(self, flag: bool = ...) -> BaseModel: ... - def with_user(self, user: Any): ... + def with_user(self, user: Any) -> BaseModel: ... def with_context(self, *args: Any, **kwargs: Any) -> BaseModel: ... def with_prefetch(self, prefetch_ids: Optional[Any] = ...) -> BaseModel: ... def mapped(self, func: Any): ...