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

Get generic of typevar #1999

Copy link
Copy link
Open
Open
Copy link
@STofone

Description

@STofone
Issue body actions

support something like this

class A[T]:
    def __init__(self, t: T):
        self.t = t


class B:
    def x[TA: A](self, a: TA) -> TA.T:
        return a.t

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: featureDiscussions about new features for Python's type annotationsDiscussions about new features for Python's type annotations

    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.