Skip to content

Treat bare Callable as Callable[..., Any] #1505

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
May 8, 2016

Conversation

rwbarton
Copy link
Contributor

@rwbarton rwbarton commented May 7, 2016

The old definition of Callable was the type of a function defined as

def f(*args: Any, **kwargs: Any) -> Any: ...

which is not the form of a general function, only one that can accept
an arbitrary number of arguments.

Fixes #1501.

The old definition of Callable was the type of a function defined as

    def f(*args: Any, **kwargs: Any) -> Any: ...

which is not the form of a general function, only one that can accept
an arbitrary number of arguments.

Fixes python#1501.
@rwbarton
Copy link
Contributor Author

rwbarton commented May 7, 2016

@ddfisher, I assume this was your intention in #670.

@gvanrossum gvanrossum merged commit bb79245 into python:master May 8, 2016
gvanrossum pushed a commit that referenced this pull request May 28, 2016
The old definition of Callable was the type of a function defined as

    def f(*args: Any, **kwargs: Any) -> Any: ...

which is not the form of a general function, only one that can accept
an arbitrary number of arguments.

Fixes #1501.
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