Files
OpenLLM/typings/nbformat/_struct.pyi
Aaron Pham c1ddb9ed7c feat: GPTQ + vLLM and LlaMA (#113)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-19 18:12:12 -04:00

29 lines
1.0 KiB
Python
Generated

"""A dict subclass that supports attribute style access.
Can probably be replaced by types.SimpleNamespace from Python 3.3
"""
from typing import Any
from typing import Dict
from typing import Self
class Struct(Dict[str, Any]):
_allownew: bool = True
def __init__(self, *args: Any, **kw: Any) -> None: ...
def __setitem__(self, key: str, value: Any) -> None: ...
def __setattr__(self, key: str, value: Any) -> None: ...
def __getattr__(self, key: str) -> Any: ...
def __iadd__(self, other: Struct) -> Self: ...
def __add__(self, other: Struct) -> Struct: ...
def __sub__(self, other: Struct) -> Struct: ...
def __isub__(self, other: Struct) -> Self: ...
def dict(self) -> Self: ...
def copy(self) -> Self: ...
def hasattr(self, key: str) -> bool: ...
def allow_new_attr(self, allow: bool = True) -> None: ...
def merge(
self,
__loc_data__: Dict[str, Any] | Struct | None = ...,
__conflict_solve: Dict[str, Any] | None = ...,
**kw: Any,
) -> Struct: ...