Skip to content

Rethink detection of weakmode #925

Closed
@jhance

Description

@jhance

Currently we "check the first 10 tokens". This is arbitrary and could lead to weirdness. Imagine a scenario where there are more options like this - there could even be more than 10 and then, well...

I feel like we should check tokens up until the first non-comment or non-docstring and search in any of those.

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