Never
is inferred in combination with generics and partial
#16540
Labels
bug
mypy got something wrong
Never
is inferred in combination with generics and partial
#16540
Not sure if this is related / the same issue as #16522, but the following code doesn't work in mypy 1.7.0:
whereas it worked fine in mypy 1.4.1.
I believe the code and typing are correct, though?
It also works fine when returning
E
instead ofOptional[E]
in both versions.The text was updated successfully, but these errors were encountered: