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.

Undefined variables in list comprehensions after latest update #830

Closed
@HenrikOssipoff

Description

@HenrikOssipoff

After the latest update to the Python extension that dropped today we're seeing a bunch of undefined variables showing up in list comprehensions. I'm assuming it's to do with some update in the language server. This snippet of code demonstrates it:

def func_a(value):
    return value


def func_b():
    list_a = [1, 2, 3, 4]

    return [func_a(value=elem) for elem in list_a]

In the above code, elem in the last line will be undefined inside the function call to func_a.

Version of the extension used: 2019.3.6139.

Metadata

Metadata

Assignees

No one assigned

    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