This commit is contained in:
2026-04-12 01:02:14 +08:00
parent 509487f155
commit 9b053e302b
14085 changed files with 2680009 additions and 12 deletions

View File

@@ -0,0 +1,27 @@
import abc
from typing import TYPE_CHECKING
try:
from pydantic import v1 as pydantic # type: ignore
except ImportError:
import pydantic # type: ignore
if TYPE_CHECKING:
from replicate.client import Client
class Resource(pydantic.BaseModel): # type: ignore
"""
A base class for representing a single object on the server.
"""
class Namespace(abc.ABC):
"""
A base class for representing objects of a particular type on the server.
"""
_client: "Client"
def __init__(self, client: "Client") -> None:
self._client = client