Skip to content

Document assert x.y is not None in the cheat sheet #5037

@JukkaL

Description

@JukkaL

Asserting when the inferred type is Optional[X] but we expect just X is a common thing and may not be obvious to users.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions