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

Incorrect inferred type for s in s = sum(i for i in [0,1]) #8

Closed

Description

microsoft/PTVS#4286
Steps:

try this code:
s = sum(i for i in [0,1])
hover over s
Expected: s: int
Actual: s: generator[int]

Curious thing is that the type of sum(i for i in [0,1]) does not seem to be inferred at all on its own.

Activity

  1. MikhailArkhipov commented on Jan 18, 2019

    @MikhailArkhipov
    Author

    #465, not yet for release though.

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

Metadata

Metadata

Labels

bugfeature: intellisense

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions