Skip to content

Confusing error message for Tuple in runtime context. #2989

@ilevkivskyi

Description

@ilevkivskyi

This code:

from typing import Tuple

Tuple[int]

fails with a strange message.

Value of type "object" is not indexable

I believe this should not be an error at all.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions