Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Nonlocal test fails #215

Description

This is b/c in

def f():
    x = None
    y = None
    def g():
        nonlocal x, y
        x = 123
        y = 234
    return x, y

definitions of x come as x = 123 and x = None and we drop the outer one. PyCharm actually points to definition in nonlocal x. So we should figure out that x is nonlocal and either point to the nonlocal line or to x = None.

Activity

  1. MikhailArkhipov commented on Feb 8, 2019

    @MikhailArkhipov
    Author

    N/A after #546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions