-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
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
BeanieUserDatabase type check fails with Pyright #12
Comments
So, can you narrow the generic |
As a pragmatic solution to this issue, can we make |
Describe the bug
Pyright complains when
BeanieUserDatabase
gets a subclass of bothBeanieBaseUser
andbeanie.Document
.To Reproduce
Expected behavior
No type errors.
Configuration
Additional context
Particularly, I see
BeanieBaseUserDocument
defined as literally a subclass of bothBeanieBaseUser
andbeanie.Document
. But defining aTypeVar
bond toBeanieBaseUserDocument
does not accept another subclass of the same classes :/The text was updated successfully, but these errors were encountered: