Skip to content

[Bug] in Intermediate empty-tuple exercise #121

Open
@dabure

Description

@dabure

Hi, I believe there is a bug in the in Intermediate empty-tuple exercise.

Relevant code:

foo((1))  # expect-type-error

(1) is not a tuple, but rather an integer, I believe a comma is missing. In effect, typing the function argument as tuple only will (incorrectly) pass the challenge.

Solution is to add a comma to make the argument a tuple:

foo((1,))  # expect-type-error

Thanks for providing fun and educative typing challenges.

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