Types

Type aliases.

Warning

This module is provisional. Types may be modified, added, and removed between minor releases.

class marshmallow.types.RenderModule(*args, **kwargs)[source]
class marshmallow.types.SchemaValidator(*args, **kwargs)[source]
marshmallow.types.StrSequenceOrSet(*args, **kwargs)

A type that can be either a sequence of strings or a set of strings

alias of Sequence[str] | AbstractSet[str]

marshmallow.types.UnknownOption(*args, **kwargs)

A valid option for the unknown schema option and argument

alias of Literal[‘exclude’, ‘include’, ‘raise’]

marshmallow.types.Validator(*args, **kwargs)

Type for validator functions

alias of Callable[[Any], Any]