comicbox.schemas.cache

source module comicbox.schemas.cache

Cache for marshmallow schema instances.

Functions

  • get_schema Get a cached schema instance, creating one if needed.

source get_schema(cls: type[BaseSchema], path: Path | str | None = None, exclude: frozenset | tuple | set = _EMPTY_FROZENSET)BaseSchema

Get a cached schema instance, creating one if needed.