Skip to content

special forms that work with boolean context semantics Truthy/Falsey #805

@KotlinIsland

Description

@KotlinIsland
t: Truthy = None # error: `None` can't be `True`
f: Falsey = 1 # error: `1` can't be `False`

maybe also a helpful-bool which only accepts types that implement __bool__ or __len__

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions