Skip to content

disable promotions #167

Open
Open
@KotlinIsland

Description

@KotlinIsland

make float not act like float | int (and complex act like complex | float) , and bytes not act like bytes | memoryview | bytearray

we can still infer float | int though:

a = 1
reveal_type(a) # float | int

will support configuration per module, to preserve compatibility:

from thirdparty import some_float
reveal_type(some_float) # float | int

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions