KEMBAR78
a joining of two types becomes `object` not a union · Issue #11440 · python/mypy · GitHub
Skip to content

a joining of two types becomes object not a union #11440

@KotlinIsland

Description

@KotlinIsland
for it in 1, "1":
    reveal_type(it)  # object

I would expect int | str

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongtopic-join-v-unionUsing join vs. using unions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions