From 07f933c02b7e063be82e68850ce8b5ff76277928 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Tue, 3 Jan 2023 16:41:28 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/api.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo-stubs/api.pyi b/odoo-stubs/api.pyi index e30410c..480f888 100644 --- a/odoo-stubs/api.pyi +++ b/odoo-stubs/api.pyi @@ -61,7 +61,7 @@ class Environment(Mapping[str, BaseModel]): cache: Cache _cache_key: dict[Field, Any] _protected: StackMap[Field, set[int]] - def __new__(cls, cr: Cursor, uid: int, context: dict, su: bool = ...) -> Environment: ... + def __new__(cls, cr: Cursor, uid: int | None, context: dict, su: bool = ...) -> Environment: ... def __contains__(self, model_name: str) -> bool: ... def __getitem__(self, model_name: str) -> BaseModel: ... def __iter__(self) -> Iterator[str]: ...