MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / __repr__

Method __repr__

NLP/Text2SQL-BASELINE/text2sql/dataproc/sql_label.py:117–130  ·  view source on GitHub ↗

doc

(self)

Source from the content-addressed store, hash-verified

115 raise NotImplementedError('compare mode not set')
116
117 def __repr__(self):
118 """doc"""
119 repr_str = ''
120 repr_str += "sel: {}\n".format(self.sel)
121 repr_str += "agg: {}\n".format([self.agg_sql_dict[a]
122 for a in self.agg])
123 repr_str += "cond_conn_op: '{}'\n".format(
124 self.conn_sql_dict[self.cond_conn_op])
125 repr_str += "conds: {}".format(
126 [[cond[0], self.op_sql_dict[cond[1]], cond[2]] for cond in self.conds])
127
128 #TODO: support order/group/...
129
130 return repr_str
131
132 def __str__(self):
133 """doc"""

Callers 1

_repr_html_Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected