Skip to content

parameter list of class covariance #1554

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

You must be logged in to vote

Yes, this is all expected. The case of l2 and l3 are different in that you are providing an explicit type annotation for l3.

For details, refer to the following documentation:
https://github.com/microsoft/pyright/blob/main/docs/type-inference.md
https://github.com/microsoft/pyright/blob/main/docs/type-concepts.md

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@smithed180
Comment options

@erictraut
Comment options

@smithed180
Comment options

Answer selected by smithed180
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