Skip to content

Be less strict about typing timer callbacks.#3499

Merged
rodrigogiraoserrao merged 3 commits intomainfrom
typing-timer-callback
Oct 27, 2023
Merged

Be less strict about typing timer callbacks.#3499
rodrigogiraoserrao merged 3 commits intomainfrom
typing-timer-callback

Conversation

@rodrigogiraoserrao
Copy link
Copy Markdown
Contributor

@rodrigogiraoserrao rodrigogiraoserrao commented Oct 10, 2023

Fixes #3434.

Timer callbacks can now return Any instead of None.

This change did not introduce any new typing errors and it fixed two typing errors in our codebase.

@rodrigogiraoserrao rodrigogiraoserrao self-assigned this Oct 10, 2023
@rodrigogiraoserrao rodrigogiraoserrao marked this pull request as ready for review October 10, 2023 13:54
Comment thread src/textual/_work_decorator.py Outdated
@rodrigogiraoserrao rodrigogiraoserrao merged commit 33a1d34 into main Oct 27, 2023
@rodrigogiraoserrao rodrigogiraoserrao deleted the typing-timer-callback branch October 27, 2023 09:47
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.

linter complaint about using a worker as a timer callback

3 participants