Skip to content

2.0: make Bool !<: Integer? #50128

@jariji

Description

@jariji

I find (1, 0) == (true, false) causes confusion. I think it would be clearer and less bug-prone without this feature.

It would be good to list use cases for the current behavior and find good replacements for them.

  • sum(bools) could be count(bools)
  • mean(bools) could be mean(float, bools)

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break codespeculativeWhether the change will be implemented is speculative

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions