Skip to content

Conversation

@sixolet
Copy link
Contributor

@sixolet sixolet commented Nov 11, 2016

This pull request is relevant to python/typing#264 making Callable more flexible and able to represent more python functions.

This adds stubs for Arg, DefaultArg, StarArg, and KwArg to mypy_extensions.pyi. We should merge this before the relevant pull request to mypy but approve them as if they're one pull request.

class DefaultArg(object):
def __init__(name: Optional[str]=...,
typ: Type[T]=...,
keyword_only: Optional[bool]=...) -> None:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops these actually shouldn't be optional. What I get for reviewing my own code.

@ambv ambv force-pushed the master branch 10 times, most recently from 63ba0ab to 7853c26 Compare December 23, 2016 00:12
@gvanrossum
Copy link
Member

Closing, seems to be superseded by #793.

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