Skip to content

Generic Type Assumption from enum key #1831

Answered by erictraut
InvincibleRMC asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can add a type annotation for the self parameter in the first overload. Pyright playground link.

For details, refer to this section of the typing spec.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@InvincibleRMC
Comment options

Answer selected by InvincibleRMC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants