Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-01-03 16:42:24 +07:00
parent 30182e15de
commit 474d3568fa

View File

@@ -58,7 +58,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]: ...