Skip to content

All geneneric types should be indexable. #298

Closed
@ilevkivskyi

Description

@ilevkivskyi

Now one can write Dict[T, int][str], while Callable[[T], int][str] raises an error. However, most of the arguments for allowing indexable generics also apply for Union, Tuple, Callable, etc. Actually, these types are also generic in the sense that they could depend on other types or type variables (for example Callable takes two types str and int, and returns a new type Callable[[str], int]).

@gvanrossum If you agree, then you can assign this issue to me.

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