Files
OpenLLM/typings/docker/models/resource.pyi
Aaron Pham c7f4dc7bb2 feat(test): snapshot testing (#107)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-10 17:23:19 -04:00

39 lines
1.1 KiB
Python
Generated

"""This type stub file was generated by pyright."""
class Model:
"""A base class for representing a single object on the server."""
id_attribute = ...
def __init__(self, attrs=..., client=..., collection=...) -> None: ...
def __repr__(self): ...
def __eq__(self, other) -> bool: ...
def __hash__(self) -> int: ...
@property
def id(self): # -> None:
"""The ID of the object."""
...
@property
def short_id(self):
"""The ID of the object, truncated to 12 characters."""
...
def reload(self): # -> None:
"""Load this object from the server again and update ``attrs`` with the
new data.
"""
...
class Collection:
"""A base class for representing all objects of a particular type on the
server.
"""
model = ...
def __init__(self, client=...) -> None: ...
def __call__(self, *args, **kwargs): ...
def list(self): ...
def get(self, key): ...
def create(self, attrs=...): ...
def prepare_model(self, attrs): # -> Model:
"""Create a model from a set of attributes."""
...