Skip to content

Ensure that generic self works for methods and class methods.#97

Merged
dnwpark merged 2 commits intomainfrom
generic-self
Feb 12, 2026
Merged

Ensure that generic self works for methods and class methods.#97
dnwpark merged 2 commits intomainfrom
generic-self

Conversation

@dnwpark
Copy link
Contributor

@dnwpark dnwpark commented Feb 12, 2026

Mostly already worked, just needed to pass the receiver for class methods to ensure things like this work:

    @classmethod
    def f[T](
        cls: type[T],
    ) -> ...

@dnwpark dnwpark requested a review from msullivan February 12, 2026 16:54
@vercel
Copy link

vercel bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
python-typemap Ready Ready Preview, Comment Feb 12, 2026 5:44pm

@dnwpark dnwpark changed the title Add tests for functions with generic self. Ensure that generic self works for methods and class methods. Feb 12, 2026
@dnwpark dnwpark merged commit dff3f20 into main Feb 12, 2026
4 checks passed
@dnwpark dnwpark deleted the generic-self branch February 12, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants