This is an automated email from the ASF dual-hosted git repository.

jorisvandenbossche pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new c38c778891 GH-35335: [Python][Docs] Fix docstring of `map_` (#35336)
c38c778891 is described below

commit c38c7788915652f5bdfaa07945809efc1188980c
Author: Fokko Driesprong <[email protected]>
AuthorDate: Wed Apr 26 10:16:16 2023 +0200

    GH-35335: [Python][Docs] Fix docstring of `map_` (#35336)
    
    It also accepts fields, but this isn't mentioned in the docstring
    
    * Closes: #35335
    
    Authored-by: Fokko Driesprong <[email protected]>
    Signed-off-by: Joris Van den Bossche <[email protected]>
---
 python/pyarrow/types.pxi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/pyarrow/types.pxi b/python/pyarrow/types.pxi
index c02d036e0f..bcd358c9a5 100644
--- a/python/pyarrow/types.pxi
+++ b/python/pyarrow/types.pxi
@@ -4286,8 +4286,8 @@ cpdef MapType map_(key_type, item_type, 
keys_sorted=False):
 
     Parameters
     ----------
-    key_type : DataType
-    item_type : DataType
+    key_type : DataType or Field
+    item_type : DataType or Field
     keys_sorted : bool
 
     Returns

Reply via email to