From 384bd0f006b1276ef00ef72b6d01263f88d990cc Mon Sep 17 00:00:00 2001 From: Tyler Reddy Date: Tue, 9 Aug 2022 15:09:35 -0600 Subject: [PATCH] MAINT: mapping f-strings * `EqualityMapping` was missing some f-strings that I needed while testing the conformance of the `pykokkos` library with the array API standard --- array_api_tests/dtype_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/array_api_tests/dtype_helpers.py b/array_api_tests/dtype_helpers.py index f691d771..1527611c 100644 --- a/array_api_tests/dtype_helpers.py +++ b/array_api_tests/dtype_helpers.py @@ -55,12 +55,12 @@ def __init__(self, key_value_pairs: Sequence[Tuple[Any, Any]]): keys = [k for k, _ in key_value_pairs] for i, key in enumerate(keys): if not (key == key): # specifically checking __eq__, not __neq__ - raise ValueError("Key {key!r} does not have equality with itself") + raise ValueError(f"Key {key!r} does not have equality with itself") other_keys = keys[:] other_keys.pop(i) for other_key in other_keys: if key == other_key: - raise ValueError("Key {key!r} has equality with key {other_key!r}") + raise ValueError(f"Key {key!r} has equality with key {other_key!r}") self._key_value_pairs = key_value_pairs def __getitem__(self, key):