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

Add more type hints to PodLauncher #18928

Merged
merged 2 commits into from
Oct 13, 2021
Merged

Add more type hints to PodLauncher #18928

merged 2 commits into from
Oct 13, 2021

Conversation

jameslamb
Copy link
Contributor

This PR proposes adding additional type hints on arguments and return values for methods in airflow.providers.cncf.kubernetes.utils.PodLauncher which currently don't have them.

I hope this additional information will improve the ability of mypy to catch potential issues during future refactorings of PodLauncher and other parts of airflow that use it.

Thanks for your time and consideration.

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@potiuk potiuk merged commit b2045d6 into apache:main Oct 13, 2021
@jameslamb jameslamb deleted the pod-launcher-type-hints branch October 13, 2021 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:cncf-kubernetes Kubernetes provider related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants