Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/j/s/jsonmanager-0.1.0.3/jsonmanager/coercion_tools.py   jsonmanager(Download)
    ListOf
    )
from .util import (
    is_mapping,
    is_sequence,
def _coerce_dict(manager, schema, data, routine):
    """ Coerce a dictionary.
        Coerce each value from `data` with the corresponding `schema` value.
        Extra elements from `data` are returned unchanged. """
    if not is_mapping(data):
def _coerce_DictOf(manager, dict_of, data, routine):
    """ Coerce a dictionary with arbitrary keys.
        Coerce each value from `data` with `dict_of.schema`. """
    if not is_mapping(data):
        return data

src/j/s/jsonmanager-0.1.0.3/jsonmanager/validation_tools.py   jsonmanager(Download)
    ListOf
    )
from .util import (
    is_mapping,
    is_sequence,
def _confirm_mapping_type(data):
    """ Raise `ValidationError` if `data` is not a mapping. """
    if not is_mapping(data):
        raise ValidationError('TYPE', "Not a mapping.")