Skip to content

Incompatible return type error doesn't quote types #3771

Closed

Description

@nematsakis

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]")

Activity

  1. ilevkivskyi commented on Jul 27, 2017

    @ilevkivskyi
    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

  2. OddBloke commented on Sep 3, 2017

    @OddBloke
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions