edponce commented on a change in pull request #11447:
URL: https://github.com/apache/arrow/pull/11447#discussion_r732806708



##########
File path: python/pyarrow/_fs.pyx
##########
@@ -833,6 +833,10 @@ cdef class SubTreeFileSystem(FileSystem):
         FileSystem.init(self, wrapped)
         self.subtreefs = <CSubTreeFileSystem*> wrapped.get()
 
+    def __repr__(self):
+        txt = 'SubTreeFileSystem(base_path={}, base_fs={})'
+        return txt.format(self.base_path, self.base_fs)

Review comment:
       Nit: No need for the `txt` variable, you can apply `format()` directly 
to the string and is more Pythonic, refer to [this 
example](https://github.com/apache/arrow/blob/master/python/pyarrow/_compute.pyx#L157-L159).
 No need to change as it will not make any real difference, but simply sharing 
info.




-- 
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]


Reply via email to