Skip to content

Commit 47774cd

Browse files
committed
[SPARK-XXXXX][PYTHON] Fix ruff format for config.py
Co-authored-by: Isaac
1 parent eee2e81 commit 47774cd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

python/pyspark/pandas/config.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,7 @@ def __setattr__(self, key: str, val: Any) -> None:
508508
prefix += "."
509509
canonical_key = prefix + key
510510

511-
candidates = [
512-
k for k in d if all(x in k.split(".") for x in canonical_key.split("."))
513-
]
511+
candidates = [k for k in d if all(x in k.split(".") for x in canonical_key.split("."))]
514512
if len(candidates) == 1 and candidates[0] == canonical_key:
515513
set_option(canonical_key, val)
516514
else:
@@ -527,9 +525,7 @@ def __getattr__(self, key: str) -> Union["DictWrapper", Any]:
527525
prefix += "."
528526
canonical_key = prefix + key
529527

530-
candidates = [
531-
k for k in d if all(x in k.split(".") for x in canonical_key.split("."))
532-
]
528+
candidates = [k for k in d if all(x in k.split(".") for x in canonical_key.split("."))]
533529
if len(candidates) == 1 and candidates[0] == canonical_key:
534530
return get_option(canonical_key)
535531
elif len(candidates) == 0:

0 commit comments

Comments
 (0)