Replies: 1 comment 3 replies
-
I'm not sure what you're trying to do with the So yes, I think pyright is correct to complain here because I don't see any valid use of the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because the new typing.Self introduced by PEP673 is an invariant, I have to write my own covariant Self.
And I'm confused by this comment
Originally posted by @erictraut in #2111 (reply in thread)
Actually, the type inference of pyright works perfectly and I can just ignore this type error. But, I'm just really curious if the error report is correct. If so, what alternative should I take?
Beta Was this translation helpful? Give feedback.
All reactions