def _dict2schema(dct):
    """Generate a `marshmallow.Schema` class given a dictionary of
    `Fields <marshmallow.fields.Field>`.
    """
    attrs = dct.copy()
    if MARSHMALLOW_VERSION_INFO[0] < 3:

        class Meta(object):
            strict = True

        attrs["Meta"] = Meta
    return type(str(""), (ma.Schema,), attrs)
def _dict2schema ( dct ) : attrs = dct . copy ( ) if MARSHMALLOW_VERSION_INFO [ 0 ] < 3 : class Meta ( object ) : strict = True attrs [ "Meta" ] = Meta return type ( str ( "" ) , ( ma . Schema , ) , attrs )
Generate a `marshmallow.Schema` class given a dictionary of
    `Fields <marshmallow.fields.Field>`.