def mapper(cls, table=None, *args, **kwargs): tb_mapper = _mapper(cls, table, *args, **kwargs) table_registry[table.name].add(tb_mapper) return tb_mapper