File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,6 @@ def __contains__(self, item: Any) -> bool:
187187 # let object acts like class
188188 def __call__ (self , * args : Any ) -> "Row" :
189189 """create new Row object"""
190-
191190 if len (args ) > len (self ):
192191 raise ValueError (
193192 "Can not create Row with fields %s, expected %d values "
@@ -230,15 +229,13 @@ def __reduce__(
230229 self ,
231230 ) -> Union [str , Tuple [Any , ...]]:
232231 """Returns a tuple so Python knows how to pickle Row."""
233-
234232 if hasattr (self , "__fields__" ):
235233 return (_create_row , (self .__fields__ , tuple (self )))
236234 else :
237235 return tuple .__reduce__ (self )
238236
239237 def __repr__ (self ) -> str :
240238 """Printable representation of Row used in Python REPL."""
241-
242239 if hasattr (self , "__fields__" ):
243240 return "Row(%s)" % ", " .join (
244241 "%s=%r" % (k , v ) for k , v in zip (self .__fields__ , tuple (self ))
You can’t perform that action at this time.
0 commit comments