pitrou commented on code in PR #13564:
URL: https://github.com/apache/arrow/pull/13564#discussion_r924322811
##########
python/pyarrow/_fs.pyx:
##########
@@ -166,19 +208,36 @@ cdef class FileInfo(_Weakrefable):
Returns
-------
type : FileType
+
+ Examples
+ --------
+ >>> file_info = local.get_file_info(path)
+ >>> file_info.type
+ <FileType.File: 2>
"""
return _wrap_file_type(self.info.type())
@property
def is_file(self):
"""
+ Examples
+ --------
+ >>> file_info = local.get_file_info(path)
+ >>> file_info.is_file
+ True
Review Comment:
Same here.
##########
python/pyarrow/_fs.pyx:
##########
@@ -201,6 +266,12 @@ cdef class FileInfo(_Weakrefable):
Returns
-------
size : int or None
+
+ Examples
+ --------
+ >>> file_info = local.get_file_info(path)
+ >>> file_info.size
+ 4
Review Comment:
Same here :-)
--
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]