pitrou commented on code in PR #47397:
URL: https://github.com/apache/arrow/pull/47397#discussion_r2469655509
##########
python/pyarrow/_csv.pyx:
##########
@@ -332,6 +332,22 @@ cdef class ReadOptions(_Weakrefable):
except TypeError:
return False
+ def _repr_base(self):
+ return (f"""
+use_threads={self.use_threads}
+block_size={self.block_size}
+skip_rows={self.skip_rows}
+skip_rows_after_names={self.skip_rows_after_names}
+column_names={self.column_names}
+autogenerate_column_names={self.autogenerate_column_names}
+encoding='{self.encoding}'""")
+
+ def __repr__(self):
+ return (f"<pyarrow.csv.ReadOptions>({self._repr_base()})")
Review Comment:
IIUC this gives something like:
```
<pyarrow.csv.ReadOptions>(
use_threads=True
block_size=1048576)
```
Can the inside of the parentheses be indented perhaps, and some commas be
added? Such as:
```
<pyarrow.csv.ReadOptions>(
use_threads=True,
block_size=1048576)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]