Skip to content

Change annotation of 'function' in Timer.__init__ from Callable[..., None] to Callable[..., Any] #3788

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

Merged
merged 2 commits into from
Feb 29, 2020
Merged

Change annotation of 'function' in Timer.__init__ from Callable[..., None] to Callable[..., Any] #3788

merged 2 commits into from
Feb 29, 2020

Conversation

PGijsbers
Copy link
Contributor

See also #3782

From None to Any. The return value is ignored, but calling a function with a return value should still be valid.
To stay consistent with threading.pyi
@srittau srittau merged commit 16ba411 into python:master Feb 29, 2020
@PGijsbers PGijsbers deleted the PGijsbers-Timer-Patch branch February 29, 2020 14:51
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