This is what the docstring says it does. However, it's unconditionally returned T since 2.27 / ab797258.