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 :)
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 toS
in the constructor ofIterator.__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!