-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ignore for the recently added and failing mypy error 'type-var' SPARK-39811 #37210
Conversation
Can one of the admins verify this patch? |
@@ -264,7 +264,7 @@ def _to_java(self) -> "JavaObject": | |||
return self._java_obj | |||
|
|||
@staticmethod | |||
def _from_java(java_stage: "JavaObject") -> "JP": | |||
def _from_java(java_stage: "JavaObject") -> "JP": # type: ignore[type-var] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anilbey mind filing a JIRA and linking it into PR title? See also, https://spark.apache.org/contributing.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's link it to the PR title, and also please take a look at https://github.com/apache/spark/pull/37210/checks?check_run_id=7379165026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The title now contains "SPARK-39811". Rebasing didn't make a difference on the CI failure.
Please note that ignoring the type error is not the best solution. Ideally the return type should be changed to avoid this error in the first place. |
Hi, @anilbey ! Thanks for the contribution for PySpark. Seems like you might need to address some stuffs as below:
|
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
A new error introduced to mypy is found in this repository. This PR adds comment to ignore that error.
Reference:
python/mypy#13166
Jira Issue:
https://issues.apache.org/jira/browse/SPARK-39811