Files
qdrant-client/qdrant_client/http/__init__.py
George 0fffa1abd4 Pydantic v2 (#214)
* new: update autogenerated code

* fix: fix config conversions

* new: add pydantic compat

* new: add types to pydantic_compat

* new: update dependencies

* new: use pydantic compat functions

* new: add pydantic v2 field check

* fix typing

* fix typing

---------

Co-authored-by: generall <andrey@vasnetsov.com>
2023-07-16 01:23:21 +02:00

17 lines
567 B
Python

import inspect
from pydantic import BaseModel
from qdrant_client._pydantic_compat import update_forward_refs
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):
update_forward_refs(model_class)