Skip to content

mypy gets confused by double coding cookie #1281

Closed
@gvanrossum

Description

@gvanrossum

When a file has two different coding cookies (one in line 1, one in line 2) mypy gets confused and uses the cookie from the second line. It should use the first.

Low priority; I found this by accident and the new parser will presumably make this go away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions