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

timsaucer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-python.git


The following commit(s) were added to refs/heads/main by this push:
     new 1812a0d3 Fix signature of `__arrow_c_stream__` (#1168)
1812a0d3 is described below

commit 1812a0d3e88976f51b40ccfd1a02fddb17ddb8bb
Author: Kyle Barron <k...@developmentseed.org>
AuthorDate: Tue Jun 24 10:21:53 2025 -0700

    Fix signature of `__arrow_c_stream__` (#1168)
---
 python/datafusion/dataframe.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/datafusion/dataframe.py b/python/datafusion/dataframe.py
index 769271c7..1fd63bdc 100644
--- a/python/datafusion/dataframe.py
+++ b/python/datafusion/dataframe.py
@@ -1053,7 +1053,7 @@ class DataFrame:
         columns = list(columns)
         return DataFrame(self.df.unnest_columns(columns, 
preserve_nulls=preserve_nulls))
 
-    def __arrow_c_stream__(self, requested_schema: pa.Schema) -> Any:
+    def __arrow_c_stream__(self, requested_schema: object | None = None) -> 
object:
         """Export an Arrow PyCapsule Stream.
 
         This will execute and collect the DataFrame. We will attempt to 
respect the


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@datafusion.apache.org
For additional commands, e-mail: commits-h...@datafusion.apache.org

Reply via email to