Skip to content

type inference for container literals (list, dict, set) and comprehensions #543

@carljm

Description

@carljm

We should start with a pretty dumb version of this (infer solely based on the types present at construction, maybe unioned with Unknown), which will be quick and easy to implement and be fine for a lot of cases.

We have a lot of design decisions to make about how we want to improve from there. It likely intersects with #136 and bidirectional checking.

Metadata

Metadata

Assignees

Labels

bidirectional inferenceInference of types that takes into account the context of a declared type or expected typegenericsBugs or features relating to ty's generics implementationneeds-decisionAwaiting a decision from a maintainer

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions