Skip to content

[red-knot] statically-known branches #12700

@carljm

Description

@carljm

In cases like if True: or if False: (or any case where we know the truthiness of a branch test), we should assume that only the possible branch is taken.

Metadata

Metadata

Assignees

Labels

tyMulti-file analysis & type inference

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions