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.

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

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.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions