Skip to content

Commit a926f02

Browse files
remove un-necessary line break s
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 450b80d commit a926f02

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/databricks/sql/types.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)