def schema_defines_dictionary(schema):
    """
    If properties are not defined for a schema, or unspecified attributes are
    allowed--the schema will translate to an instance of `Dictionary`.
    """
    return schema.type_ == 'object' and (schema.additional_properties or 
        not schema.properties)
