Skip to content

[red-knot] Infer subscript expression types #13689

@MichaReiser

Description

@MichaReiser

Limited support for inferring subscript expressions, e.g when the value is a tuple, or string.

def test(a: str):
	c = a[0]

Metadata

Metadata

Assignees

Labels

tyMulti-file analysis & type inference

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions