Skip to content

max: comparing int with Decimal doesn't typecheck #5275

Closed
@zormit

Description

@zormit
from decimal import Decimal

max(1, Decimal(2))

error: Value of type variable "SupportsLessThanT" of "max" cannot be "object"

I would expect this to pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions