Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

All geneneric types should be indexable. #298

Copy link
Copy link
@ilevkivskyi

Description

@ilevkivskyi
Issue body actions

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.

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.