We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code sample in basedpyright playground
class Foo[T]: # (type parameter) T: T@Foo (contravariant) def __foo(self, value: T): ...
since __foo can't be called outside of the class, i'm pretty sure it's safe for the generic to be covariant
__foo
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Code sample in basedpyright playground
since
__foo
can't be called outside of the class, i'm pretty sure it's safe for the generic to be covariantThe text was updated successfully, but these errors were encountered: