#NEWLINE# def __init__( self , cls , alias = None , name = None , flat = False , adapt_on_names = False , with_polymorphic_mappers = ( ) , with_polymorphic_discriminator = None , base_alias = None , use_mapper_path = False ) : #NEWLINE# #INDENT# mapper = _class_to_mapper ( cls ) #NEWLINE# if ( alias is None ) : #NEWLINE# #INDENT# alias = mapper . _with_polymorphic_selectable . alias ( name = name , flat = flat ) #NEWLINE# #UNINDENT# self . _aliased_insp = AliasedInsp ( self , mapper , alias , name , ( with_polymorphic_mappers if with_polymorphic_mappers else mapper . with_polymorphic_mappers ) , ( self if ( with_polymorphic_discriminator is not None ) else mapper . polymorphic_on ) , base_alias , use_mapper_path , adapt_on_names ) #NEWLINE# self . __name__ = ( 'AliasedClass_%s' % mapper . class_ . __name__ )