⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@gaogaotiantian
Copy link
Contributor

What changes were proposed in this pull request?

Implement classproperty correctly with descriptor.

Why are the changes needed?

The current implementation is unnecessarily complicated. It does not need to inherit property and use it's methods. Also it confuses type checker.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Need to pass CI

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions
Copy link

JIRA Issue Information

=== Improvement SPARK-54990 ===
Summary: Make classproperty in session.py reasonable
Assignee: None
Status: Open
Affected: ["4.2.0"]


This comment was automatically generated by GitHub Actions

HyukjinKwon
HyukjinKwon previously approved these changes Jan 12, 2026
@HyukjinKwon HyukjinKwon dismissed their stale review January 12, 2026 23:02

Oh actually seems linter is failing:

python/pyspark/sql/session.py:613: error: Argument 1 to "classproperty" has incompatible type "Callable[[SparkSession], Builder]"; expected "Callable[[type], Builder]"  [arg-type]
Found 1 error in 1 file (checked 1185 source files)
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants