nchammas opened a new pull request #34671:
URL: https://github.com/apache/spark/pull/34671
### What changes were proposed in this pull request?
This PR inlines the type annotations for `{ml, mllib}/common.py`.
### Why are the changes needed?
This allows us to run type checks against the code within both versions of
`common.py`.
This would help contributors catch some issues more easily, like this one:
https://github.com/apache/spark/pull/34606#discussion_r749783512
### Does this PR introduce _any_ user-facing change?
Potentially. The `C` TypeVar is now public.
### How was this patch tested?
Existing tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]