Skip to content

Commit a41bf17

Browse files
timsaucerclaude
andcommitted
docs: drop trailing clear_sender_ctx from set_sender_ctx example
The trailing cleanup call was test hygiene, not API teaching, and risked implying callers must always pair set with clear. Adjacent clear_sender_ctx and get_sender_ctx doctests are self-contained (they explicitly set or clear before asserting), so removing the cleanup line does not affect doctest outcomes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a04ec5c commit a41bf17

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

python/datafusion/ipc.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,11 @@ def set_sender_ctx(ctx: SessionContext) -> None:
175175
176176
Examples:
177177
>>> from datafusion import SessionContext
178-
>>> from datafusion.ipc import (
179-
... set_sender_ctx, get_sender_ctx, clear_sender_ctx,
180-
... )
178+
>>> from datafusion.ipc import set_sender_ctx, get_sender_ctx
181179
>>> driver = SessionContext().with_python_udf_inlining(enabled=False)
182180
>>> set_sender_ctx(driver)
183181
>>> get_sender_ctx() is driver
184182
True
185-
>>> clear_sender_ctx()
186183
"""
187184
_local.sender_ctx = ctx
188185

0 commit comments

Comments
 (0)