Skip to content

Relate _curses.wrapper return type to its function arg #2353

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 1 commit into from
Aug 1, 2018

Conversation

olmokramer
Copy link
Contributor

curses.wrapper returns the return value of the function it is passed,
but its function argument is declared as Callable[..., Any] while its
return type is None. This changes the definition of curses.wrapper
to use a TypeVar that relates the return type of its function argument
to its own return type.

`curses.wrapper` returns the return value of the function it is passed,
but its function argument is declared as `Callable[..., Any]` while its
return type is `None`. This changes the definition of `curses.wrapper`
to use a `TypeVar` that relates the return type of its function argument
to its own return type.
@JelleZijlstra JelleZijlstra merged commit 4ca0a63 into python:master Aug 1, 2018
@JelleZijlstra
Copy link
Member

Thanks for the fix!

@olmokramer olmokramer deleted the curses-wrapper-return-type branch August 1, 2018 16:01
yedpodtrzitko pushed a commit to yedpodtrzitko/typeshed that referenced this pull request Jan 23, 2019
`curses.wrapper` returns the return value of the function it is passed,
but its function argument is declared as `Callable[..., Any]` while its
return type is `None`. This changes the definition of `curses.wrapper`
to use a `TypeVar` that relates the return type of its function argument
to its own return type.
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