Skip to content

type: ignore doesn't work with multi-line statements #3448

@sharmaeklavya2

Description

@sharmaeklavya2

file.py:

1 \
+ '2'  # type: ignore

gives output

file.py:1: error: Unsupported operand types for + ("int" and "str")

which is wrong IMO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions