Skip to content

Commit 924aacf

Browse files
committed
Enabled ruff rule PGH003
1 parent b619e9a commit 924aacf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ ignore = [
9595
# "FBT003",
9696
# "C416",
9797
# "SIM102",
98-
"PGH003",
98+
# "PGH003",
9999
"PLR2004",
100100
"PERF401",
101101
"PD901",

python/datafusion/dataframe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ def join(
517517
and isinstance(on[0], list)
518518
and isinstance(on[1], list)
519519
):
520-
join_keys = on # type: ignore
520+
# We know this is safe because we've checked the types
521+
join_keys = on # type: ignore[assignment]
521522
on = None
522523

523524
if join_keys is not None:

0 commit comments

Comments
 (0)