Skip to content

Incompatible return type error doesn't quote types #3771

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

Closed
nematsakis opened this issue Jul 27, 2017 · 2 comments
Closed

Incompatible return type error doesn't quote types #3771

nematsakis opened this issue Jul 27, 2017 · 2 comments

Comments

@nematsakis
Copy link

The error message for an incompatible return type doesn't have quotation marks around the types. This makes it difficult to programmatically process the output of mypy to filter "expected" errors.

Example output:
Error: Incompatible return value type (got List[Type1], expected List[Type2])

Expected output:
Error: Incompatible return value type (got "List[Type1]", expected "List[Type2]")

@ilevkivskyi
Copy link
Member

We actually have a PR #3430 for this, but it looks like @mistermocha is currently busy.
I think this is essentially a duplicate of #3409

@ilevkivskyi ilevkivskyi marked this as a duplicate of #3409 Jul 27, 2017
@OddBloke
Copy link
Contributor

OddBloke commented Sep 3, 2017

I believe this was fixed in #3873.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants