Skip to content

(馃悶) No error when empty tuple used as type parameter聽#12316

Open

Description

@KotlinIsland
l: list[()][int]

No mypy error but this fails at runtime.

I have no idea what this supposed to do, empty tuple as an argument is only mentioned in the pep for tuple

Activity

  1. changed the title [-](馃悶) No any expression error when type has wacky empty tuple in it[/-] [+](馃悶) No error when empty tuple used as type parameter[/+] on Mar 9, 2022
  2. DetachHead commented on Mar 9, 2022

    @DetachHead
    Contributor

    related: an empty Union is equivalent to NoReturn (aka a "Never" type) python/typeshed#6290 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions