Skip to content

Commit 1a329ca

Browse files
Drop the duplicate QueryPlannerExportable definition
Upstream moved QueryPlannerExportable into datafusion/extensions.py and context.py now imports it. This branch still carried the old class body from an earlier merge, so the two collided and ruff reported F811. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent ba4cb30 commit 1a329ca

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

‎python/datafusion/context.py‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,6 @@ class PhysicalOptimizerRuleExportable(Protocol):
161161
def __datafusion_physical_optimizer_rule__(self) -> object: ... # noqa: D105
162162

163163

164-
class QueryPlannerExportable(Protocol):
165-
"""Type hint for object that has a __datafusion_query_planner__ PyCapsule.
166-
167-
The method returns a PyCapsule wrapping an ``FFI_QueryPlanner``, typically
168-
produced by a separate compiled extension. ``session`` is the
169-
:py:class:`SessionContext` the planner is being installed on; take the
170-
extension codecs from it rather than building your own.
171-
"""
172-
173-
def __datafusion_query_planner__(self, session: Any) -> object: ... # noqa: D105
174-
175-
176164
class ExtensionOptionsExportable(Protocol):
177165
"""Type hint for object that has __datafusion_extension_options__ PyCapsule.
178166

0 commit comments

Comments
 (0)