python_api: remove unused function `_non_numeric_type_error`

This commit is contained in:
Ran Benita 2023-12-07 11:03:52 +02:00
parent d1675646f2
commit 4918883336
1 changed files with 0 additions and 9 deletions

View File

@ -30,15 +30,6 @@ if TYPE_CHECKING:
from numpy import ndarray from numpy import ndarray
def _non_numeric_type_error(value, at: Optional[str]) -> TypeError:
at_str = f" at {at}" if at else ""
return TypeError(
"cannot make approximate comparisons to non-numeric values: {!r} {}".format(
value, at_str
)
)
def _compare_approx( def _compare_approx(
full_object: object, full_object: object,
message_data: Sequence[Tuple[str, str, str]], message_data: Sequence[Tuple[str, str, str]],