Skip to main content

get_pydantic_version

No overview available.

def get_pydantic_version(
py: Python< '_ >
) - > string

Retrieves the version string of the installed Pydantic library to ensure compatibility with data validation schemas.

Returns

TypeDescription
stringThe semantic version string of the Pydantic package (e.g., "1.10.0" or "2.0.0").