TypeVarTuple.__typing_prepare_subst__
does not work as intented
#96385
Labels
TypeVarTuple.__typing_prepare_subst__
does not work as intented
#96385
Right now there's an uncovered branch in
TypeVarTuple.__typing_prepare_subst__
:And it looks like there's a bug in it, these two lines:
This
if
's body will never be executed, becauseenumerate
always returnstuple[int, T]
, it is neverTypeVarTuple
.So, I think that we need to remove
enumerate()
call here and add a test like:I will send a PR 😉
The text was updated successfully, but these errors were encountered: