Fix 'at' string for non-numeric messages in approx()

This commit is contained in:
Bruno Oliveira 2018-08-01 07:07:37 -03:00
parent 6e32a1f73d
commit 5003bae0de
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ def _cmp_raises_type_error(self, other):
def _non_numeric_type_error(value, at): def _non_numeric_type_error(value, at):
at_str = "at {}".format(at) if at else "" at_str = " at {}".format(at) if at else ""
return TypeError( return TypeError(
"cannot make approximate comparisons to non-numeric values: {!r} ".format( "cannot make approximate comparisons to non-numeric values: {!r} {}".format(
value, at_str value, at_str
) )
) )