mirror of
https://github.com/qdrant/qdrant-client.git
synced 2026-07-28 21:51:07 -05:00
* update api * upd openapi fix bugs * pylance fix * fix: add TypeAlias to some common types * fix: update models import for pylance * fix: fix Batch test * fix: update mypy config * fix: define Payload before Batch * fix: add missing .result to requests, add assert None for responses (#102) * pylance fix in generator --------- Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
16 lines
505 B
Python
16 lines
505 B
Python
import inspect
|
|
|
|
from pydantic import BaseModel
|
|
from qdrant_client.http.api_client import ( # noqa F401
|
|
ApiClient as ApiClient,
|
|
AsyncApis as AsyncApis,
|
|
SyncApis as SyncApis,
|
|
)
|
|
from qdrant_client.http.models import models as models # noqa F401
|
|
|
|
for model in inspect.getmembers(models, inspect.isclass):
|
|
if model[1].__module__ == "qdrant_client.http.models.models":
|
|
model_class = model[1]
|
|
if issubclass(model_class, BaseModel):
|
|
model_class.update_forward_refs()
|