Files
qdrant-client/qdrant_client/http/__init__.py
Andrey Vasnetsov c3389e3c20 update api to v1.0.0 (#101)
* 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>
2023-02-08 11:11:25 +01:00

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()