Skip to content

Commit 584c600

Browse files
committed
fix: add safety comment for type checking in join keys assignment
1 parent ba54f7d commit 584c600

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/datafusion/dataframe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ def _prepare_join(
811811
and isinstance(on[0], list)
812812
and isinstance(on[1], list)
813813
):
814+
# We know this is safe because we've checked the types
814815
join_keys = on # type: ignore[assignment]
815816
resolved_on = None
816817
else:

0 commit comments

Comments
 (0)