KEMBAR78
With disallow_untyped_defs, warn for missing return types on async def by JelleZijlstra · Pull Request #4218 · python/mypy · GitHub
Skip to content

Conversation

JelleZijlstra
Copy link
Member

Fixes #4209.

Under disallow_untyped_defs, we were missing errors for missing return
types on async def functions, because the return type of such functions
is Awaitable[Any] instead of Any.

This PR also removes a duplicate test case (apparently from the fast
parser cleanup) and adds some missing annotations to stubs.

Fixes python#4209.

Under disallow_untyped_defs, we were missing errors for missing return
types on async def functions, because the return type of such functions
is Awaitable[Any] instead of Any.

This PR also removes a duplicate test case (apparently from the fast
parser cleanup) and adds some missing annotations to stubs.
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

LGTM -- thanks for the PR!

@JukkaL JukkaL merged commit e1c569c into python:master Nov 15, 2017
@JelleZijlstra JelleZijlstra deleted the fix4209 branch November 15, 2017 16:00
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