#NEWLINE# def declarative_base( decl_type , name , cls , metaclass , **kwargs ) : #NEWLINE# #INDENT# 'Create base class for defining new database classes.\n\n    :param decl_type: DeclarativeType enum value.\n    :param name: Metaclass name\n    :param cls: Base class(es) for returned class\n    :param metaclass: Metaclass for registering type information\n    ' #NEWLINE# bases = ( cls if isinstance ( kwargs , tuple ) else ( cls , ) ) #NEWLINE# class_dict = dict ( decl_type = decl_type ) #NEWLINE# class_dict . update ( kwargs ) #NEWLINE# return metaclass ( name , bases , class_dict )