youtux / types-factory-boy

Type stubs for factory-boy
MIT License
17 stars 4 forks source link

Bind generic type argument to Iterator.__init__() #31

Closed JakobGM closed 1 year ago

JakobGM commented 1 year ago

This is somewhat of a drive-by PR, so I hope that I have not misunderstood these type annotations, but I think that this should be an improvement. The type variable T should be identical to S in the constructor of Iterator.__init__(), so we can use it in order to bind the correct types.

If you need more context, I can try to provide it :)

Thanks in advance!