Skip to content

Assert False is not cutting branches #599

@stolati

Description

@stolati

Describe the Bug

When places in the code should never arrive, I do put assert False to cut the branch, but it's not taken into account after switching to pyrefly.

Sandbox Link

https://pyrefly.org/sandbox/?code=FAEwpgZgBBCWA2YD6B7ADmAdkgti8AFLAFxQDOALgE4CUUAtAHznXHBQdSzSxQC8fKAHIqQtpwlQqYCgFcqmLu07cu-QUIDuY5ZKkz5i2LqgBDMmTBUKUAGKn4lgDRQARADkUFABaxMAcxgUWUwQVygAYigAERQwMkwhG00UKgBrYEzwaDhEVAxsPEISFloGZkoqcRUedWFRar1pOQUlCVVeAWFtRslmwzbOKlNYSygANQdZMABRKipUglcKLxRXOiiU9LIoNAWMKngAT0ygA

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions