Skip to content

glob is not been recognized if in a for def #338

Description

@jcrmatos

Environment data

VS Code version: 1.18.1
Python Extension version: 0.8.0
Python Version: CPython 3.5.4 32b
OS and version: Windows 7 Pro SP1 x64

Actual behavior

for file in glob(bdexp.TEMP_DIR + '*.pdf'):  # type: str
    remove(file)
a = glob(bdexp.TEMP_DIR + '*.pdf')

On the above lines if I put the mouse cursor over the 1st glob (on the for def) Intellisense shows the def for str.
If I put the mouse cursor over the 2nd glob Intellisense shows the glob def.

Expected behavior

Intellisense should show the glob def for both situations.

Thanks,

JM

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions