Skip to content

Commit 1b69704

Browse files
DimitriPapadopoulosastanin
authored andcommitted
Remove spurious cast in string interpolation
String interpolation is about converting arguments to strings. Explicitly converting to string is useless and hurts readability.
1 parent 4d535af commit 1b69704

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _check_signature(function, expected_sig):
2424
if not signature:
2525
skip("")
2626
actual_sig = signature(function)
27-
print(f"expected: {expected_sig}\nactual: {str(actual_sig)}\n")
27+
print(f"expected: {expected_sig}\nactual: {actual_sig}\n")
2828

2929
assert len(actual_sig.parameters) == len(expected_sig)
3030

0 commit comments

Comments
 (0)