Skip to content

With disallow_untyped_defs, warn for missing return types on async def #4218

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 2 commits into from
Nov 15, 2017

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