style: ensure trailing commas in multi-line statements

This commit is contained in:
jakob.scheid committed 2026-09-18 22:18:13 +02:00
1 parent ffcc7404de
commit 475775eb7e
30 files changed
+1778 -1774

No files matched your search

@@ -34,33 +34,33 @@ def test_assert_that_is_instance(obj, class_or_tuple):
(
1,
str,
'expected \'str\', got \'int\''
'expected \'str\', got \'int\'',
),
(
1,
(str,),
'expected \'str\', got \'int\''
'expected \'str\', got \'int\'',
),
(
1,
str | float,
'expected either \'str\' or \'float\', got \'int\''
'expected either \'str\' or \'float\', got \'int\'',
),
(
1,
str | float | list,
'expected either \'str\', \'float\' or \'list\', got \'int\''
'expected either \'str\', \'float\' or \'list\', got \'int\'',
),
(
1,
TestType,
'expected \'NOT TestType\', got \'int\''
'expected \'NOT TestType\', got \'int\'',
),
])
def test_assert_that_is_instance_exceptions(
obj,
class_or_tuple,
expected_exception_msg
expected_exception_msg,
):
with pytest.raises(TypeError) as exc_info:
assert_that_is_instance(obj, class_or_tuple)