Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-10-18 15:40:33 +07:00
parent 60c677b7dc
commit efcf20bd41
2 changed files with 3 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ class Environment(Mapping[str, BaseModel]):
def __new__( def __new__(
cls, cr: Cursor, uid: int | None, context: dict, su: bool = ... cls, cr: Cursor, uid: int | None, context: dict, su: bool = ...
) -> Environment: ... ) -> Environment: ...
def __contains__(self, model_name: str) -> bool: ... def __contains__(self, model_name) -> bool: ...
def __getitem__(self, model_name: str) -> BaseModel: ... def __getitem__(self, model_name: str) -> BaseModel: ...
def __iter__(self) -> Iterator[str]: ... def __iter__(self) -> Iterator[str]: ...
def __len__(self) -> int: ... def __len__(self) -> int: ...

View File

@@ -293,6 +293,8 @@ class Unpickler(pickle_.Unpickler):
pickle: ModuleType pickle: ModuleType
class ReadonlyDict(Mapping): ...
class DotDict(dict): class DotDict(dict):
def __getattr__(self, attrib): ... def __getattr__(self, attrib): ...