Skip to content
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

[SPARK-35467][SPARK-35468][SPARK-35477][PYTHON] Fix disallow_untyped_defs mypy checks. #32627

Conversation

ueshin
Copy link
Member

@ueshin ueshin commented May 22, 2021

What changes were proposed in this pull request?

Adds more type annotations in the files:

  • python/pyspark/pandas/spark/accessors.py
  • python/pyspark/pandas/typedef/typehints.py
  • python/pyspark/pandas/utils.py

and fixes the mypy check failures.

Why are the changes needed?

We should enable more disallow_untyped_defs mypy checks.

Does this PR introduce any user-facing change?

Yes.
This PR adds more type annotations in pandas APIs on Spark module, which can impact interaction with development tools for users.

How was this patch tested?

The mypy check with a new configuration and existing tests should pass.

@SparkQA
Copy link

SparkQA commented May 22, 2021

Test build #138819 has finished for PR 32627 at commit 57997ae.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class SparkIndexOpsMethods(metaclass=ABCMeta):

@SparkQA
Copy link

SparkQA commented May 22, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43341/

@SparkQA
Copy link

SparkQA commented May 22, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43341/

@SparkQA
Copy link

SparkQA commented May 22, 2021

Test build #138826 has finished for PR 32627 at commit f1fdd46.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented May 22, 2021

Kubernetes integration test unable to build dist.

exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43348/

@ueshin ueshin marked this pull request as ready for review May 22, 2021 17:07
@HyukjinKwon
Copy link
Member

Merged to master.

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.

4 participants