Open seddonym opened 10 months ago
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
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
?