griffe_pydantic
¤
griffe-pydantic package.
Griffe extension for Pydantic.
Modules:
-
common–Deprecated. Import from
griffe_pydanticdirectly instead. -
dynamic–Deprecated. Import from
griffe_pydanticdirectly instead. -
extension–Deprecated. Import from
griffe_pydanticdirectly instead. -
static–Deprecated. Import from
griffe_pydanticdirectly instead.
Classes:
-
PydanticExtension–Griffe extension for Pydantic.
Functions:
-
get_templates_path–Return the templates directory path.
PydanticExtension
¤
Bases: Extension
Griffe extension for Pydantic.
Parameters:
Methods:
-
on_class_instance–Detect and prepare Pydantic models.
-
on_package–Detect models once the whole package is loaded.
Source code in src/griffe_pydantic/_internal/extension.py
43 44 45 46 47 48 49 50 51 52 | |
on_class_instance
¤
Detect and prepare Pydantic models.
Source code in src/griffe_pydantic/_internal/extension.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
on_package
¤
on_package(*, pkg: Module, **kwargs: Any) -> None
Detect models once the whole package is loaded.
Source code in src/griffe_pydantic/_internal/extension.py
54 55 56 57 58 59 | |
get_templates_path
¤
get_templates_path() -> Path
Return the templates directory path.
Source code in src/griffe_pydantic/__init__.py
31 32 33 | |
common
¤
Deprecated. Import from griffe_pydantic directly instead.
dynamic
¤
Deprecated. Import from griffe_pydantic directly instead.
extension
¤
Deprecated. Import from griffe_pydantic directly instead.
static
¤
Deprecated. Import from griffe_pydantic directly instead.