Shortcuts

qdrant_client.conversions.common_types module

get_args_subscribed(tp)[source]

Get type arguments with all substitutions performed. Supports subscripted generics having __origin__

Parameters:

tp – type to get arguments from. Can be either a type or a subscripted generic

Returns:

tuple of type arguments

remap_type(tp: type) type[source]

Remap type to a type that can be used in type annotations

Pydantic uses custom types for strict types, so we need to remap them to standard types so that they can be used in type annotations and isinstance checks