Fix 'at' string for non-numeric messages in approx()
This commit is contained in:
parent
6e32a1f73d
commit
5003bae0de
|
@ -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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue