Skip to content
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

Additional type information for asyncio #81

Merged
merged 7 commits into from
Feb 20, 2016
Merged

Conversation

dsp
Copy link
Contributor

@dsp dsp commented Feb 11, 2016

This pull request adds more type information for asyncio.

I've tested this against a small code library internally that was written in Python 3.5 and uses asyncio.subprocess. I tested this with mypy at 9befcc7.

I am sure some of the types need refinement as this is the first time I am working with typeshed and typed python.

@gvanrossum
Copy link
Member

Thanks! Could you fix the issues discovered by Travis CI?

@dsp
Copy link
Contributor Author

dsp commented Feb 11, 2016

I am checking on the error
stdlib/3.4/asyncio/__init__.pyi:68: error: Cannot determine type of '__all__'
but I cannot reproduce it locally so far

David Soria Parra added 2 commits February 10, 2016 22:09
Add the appropriate types for AbstractServer in asyncio.events. wait_closed() is
a couroutine, however in the implementation of AbstractServer not marked
as such. We are adding the couroutine defintion here anyway, as we do want
to make it typeable as a coroutine if necessary.
@gvanrossum
Copy link
Member

Try something like mypy stdlib/3.4/asyncio/tasks.py.

@dsp
Copy link
Contributor Author

dsp commented Feb 20, 2016

This seems to have been caused by absolute imports having mypy's internal typeshed information pulled in, which conflicts. @gvanrossum thanks for the hint, much appreciated.

gvanrossum added a commit that referenced this pull request Feb 20, 2016
Additional type information for asyncio
@gvanrossum gvanrossum merged commit 8d8e7ca into python:master Feb 20, 2016
@gvanrossum
Copy link
Member

Thanks again!

@gvanrossum gvanrossum mentioned this pull request Feb 24, 2016
momandine pushed a commit to momandine/typeshed that referenced this pull request Jul 5, 2016
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