Skip to content

Disallow tuple unpacking for strings #6406

Closed
@msullivan

Description

@msullivan

I think it would be a good idea to disallow tuple unpacking from strings, so that the following is caught:

d: Dict[str, str]
for a, b in d:
    stuff

There are a lot of cases involving one or the other of string iteration and tuple unpacking that we probably can't solve without risking too many false positives, but this one should be pretty harmless.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions