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
Currently, if I use the factory class directly to create an object, it's type hinted as the factory class:
user = UserFactory() reveal_type(user) # UserFactory type(user) # User
I think this might be because the return value of BaseFactory.__new__ is annotated with Self rather than T?
BaseFactory.__new__
Self
T
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, if I use the factory class directly to create an object, it's type hinted as the factory class:
I think this might be because the return value of
BaseFactory.__new__
is annotated withSelf
rather thanT
?The text was updated successfully, but these errors were encountered: