|
| 1 | +from .object import Object as Object |
| 2 | +from typing import Any, Callable, Iterable, Iterator, Pattern |
| 3 | + |
| 4 | +class DictList(list): |
| 5 | + def __init__(self, *args) -> None: ... |
| 6 | + def has_id(self, id: Object | str) -> bool: ... |
| 7 | + def get_by_id(self, id: Object | str) -> Object: ... |
| 8 | + def list_attr(self, attribute: str) -> list: ... |
| 9 | + def get_by_any(self, iterable: list[str | Object | int]) -> list: ... |
| 10 | + def query(self, search_function: str | Pattern | Callable, attribute: str | None = None) -> DictList: ... |
| 11 | + def append(self, entity: Object) -> None: ... |
| 12 | + def union(self, iterable: Iterable[Object]) -> None: ... |
| 13 | + def extend(self, iterable: Iterable[Object]) -> None: ... |
| 14 | + def __sub__(self, other: Iterable[Object]) -> DictList: ... |
| 15 | + def __isub__(self, other: Iterable[Object]) -> DictList: ... |
| 16 | + def __add__(self, other: Iterable[Object]) -> DictList: ... |
| 17 | + def __iadd__(self, other: Iterable[Object]) -> DictList: ... |
| 18 | + def __reduce__(self) -> tuple[type['DictList'], tuple, dict, Iterator]: ... |
| 19 | + def index(self, id: str | Object, *args) -> int: ... |
| 20 | + def __contains__(self, entity: str | Object) -> bool: ... |
| 21 | + def __copy__(self) -> DictList: ... |
| 22 | + def insert(self, index: int, entity: Object) -> None: ... |
| 23 | + def pop(self, *args) -> Object: ... |
| 24 | + def add(self, x: Object) -> None: ... |
| 25 | + def remove(self, x: str | Object) -> None: ... |
| 26 | + def reverse(self) -> None: ... |
| 27 | + def sort(self, cmp: Callable = None, key: Callable = None, reverse: bool = False) -> None: ... |
| 28 | + def __getitem__(self, i: int | slice | Iterable | Object | DictList) -> DictList | Object: ... |
| 29 | + def __setitem__(self, i: slice | int, y: list | Object) -> None: ... |
| 30 | + def __delitem__(self, index: int) -> None: ... |
| 31 | + def __getslice__(self, i: int, j: int) -> DictList: ... |
| 32 | + def __setslice__(self, i: int, j: int, y: list | Object) -> None: ... |
| 33 | + def __delslice__(self, i: int, j: int) -> None: ... |
| 34 | + def __getattr__(self, attr: Any) -> Any: ... |
| 35 | + def __dir__(self) -> list: ... |
0 commit comments