Skip to content

MAINT: mapping f-strings #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions array_api_tests/dtype_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down