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

Fix Task.worker_timeout type annotation. #3332

Merged

Conversation

ccmaymay
Copy link
Contributor

@ccmaymay ccmaymay commented Dec 16, 2024

Description

Fix Task.worker_timeout type annotation, allowing None or integer values.

Motivation and Context

This change prevents mypy from complaining about user code that overrides Task.worker_timeout with an integer (#3331).

Have you tested this? If so, how?

Yes; I installed luigi from source with this change and type checking now passes and my pipelines still run.

@ccmaymay ccmaymay requested review from dlstadther and a team as code owners December 16, 2024 19:20
@dlstadther dlstadther merged commit b2b3b58 into spotify:master Dec 18, 2024
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants