Skip to content

Commit 6b26808

Browse files
style: pre-commit fixes
1 parent f04c36f commit 6b26808

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

tests/test_enum.py

+11-6
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,23 @@ def test_enum_to_int():
232232
def test_enum_overload_resolution():
233233
"""When performing overload resolution, enums should not be silently
234234
converted to floats"""
235-
assert m.test_enum_overload_resolution(0.0, 0.0) == 'f(float, float)'
236-
assert m.test_enum_overload_resolution(0, 0) == 'f(float, float)'
237-
assert m.test_enum_overload_resolution(0.0, m.ScopedEnum.Two) == 'f(float, ScopedEnum)'
238-
assert m.test_enum_overload_resolution(0, m.ScopedEnum.Two) == 'f(float, ScopedEnum)'
235+
assert m.test_enum_overload_resolution(0.0, 0.0) == "f(float, float)"
236+
assert m.test_enum_overload_resolution(0, 0) == "f(float, float)"
237+
assert (
238+
m.test_enum_overload_resolution(0.0, m.ScopedEnum.Two) == "f(float, ScopedEnum)"
239+
)
240+
assert (
241+
m.test_enum_overload_resolution(0, m.ScopedEnum.Two) == "f(float, ScopedEnum)"
242+
)
239243

240244

241245
def test_enum_to_float():
242246
"""Passing an enum to a function taking a float should trigger a type error"""
243247
with pytest.raises(TypeError) as execinfo:
244248
m.test_enum_to_float(m.ScopedBoolEnum.TRUE)
245-
assert str(execinfo.value).startswith('TypeError: test_enum_to_float(): incompatible function arguments.')
246-
249+
assert str(execinfo.value).startswith(
250+
"TypeError: test_enum_to_float(): incompatible function arguments."
251+
)
247252

248253

249254
def test_duplicate_enum_name():

0 commit comments

Comments
 (0)