Skip to main content

plugin

version is the mypy version string.

We might want to use this to print a warning if the mypy version being used is newer, or especially older, than we expect (or need).

Args: version: The mypy version string.

Return: The Pydantic mypy plugin type.

def plugin(
version: string
) - > type[Plugin]

version is the mypy version string.

We might want to use this to print a warning if the mypy version being used is newer, or especially older, than we expect (or need).

Parameters

NameTypeDescription
versionstringThe mypy version string.

Returns

TypeDescription
type[Plugin]The Pydantic mypy plugin type.