For Issue #26983: warn if 'res' not of exact type float.

PyNumber_Float PyNumber_Long: (type %.200s

PyNumber_Index (type %.50s

So you may get a different warning message if type name length is over 50…