Skip to content

Type inference for generator expressions #1510

@AlexWaygood

Description

@AlexWaygood

I think these should be basically the same as comprehensions (astral-sh/ruff#20962, #1388), except that types.GeneratorType is covariant. That means that Literal promotion probably won't be necessary, bidirectional inference is less important, and unioning with Unknown probably won't be necessary

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions