Skip to content

Commit a32292a

Browse files
timsaucerclaude
andcommitted
Remove redundant import pyarrow as pa from docstrings
The pa alias is already provided by the doctest namespace in conftest.py, so inline imports are unnecessary. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent de89982 commit a32292a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

python/datafusion/user_defined.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ def udf(*args: Any, **kwargs: Any): # noqa: D417
213213
Examples:
214214
Using ``udf`` as a function:
215215
216-
>>> import pyarrow as pa
217216
>>> import pyarrow.compute as pc
218217
>>> from datafusion.user_defined import ScalarUDF
219218
>>> def double_func(x):
@@ -480,7 +479,6 @@ def udaf(*args: Any, **kwargs: Any): # noqa: D417, C901
480479
instance in which this UDAF is used.
481480
482481
Examples:
483-
>>> import pyarrow as pa
484482
>>> import pyarrow.compute as pc
485483
>>> from datafusion.user_defined import AggregateUDF, Accumulator, udaf
486484
>>> class Summarize(Accumulator):
@@ -874,7 +872,6 @@ def udwf(*args: Any, **kwargs: Any): # noqa: D417
874872
When using ``udwf`` as a decorator, do not pass ``func`` explicitly.
875873
876874
Examples:
877-
>>> import pyarrow as pa
878875
>>> from datafusion.user_defined import WindowUDF, WindowEvaluator, udwf
879876
>>> class BiasedNumbers(WindowEvaluator):
880877
... def __init__(self, start: int = 0):

0 commit comments

Comments
 (0)