Skip to content

Document that variable needs to be read for --allow-redefinition to work #6963

Closed
@JukkaL

Description

@JukkaL

See #6959.

Part of the motivation is that this shouldn't trigger redefinition:

x = None  # type: List[int]
...  # Do nothing with `x`
x = []  # Want to preserve type context

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions