Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-01-03 16:41:28 +07:00
parent 5dddaa91c6
commit 07f933c02b

View File

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