Skip to content

Commit 0d57cac

Browse files
committed
linting
1 parent 77a3faf commit 0d57cac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/magpylib_material_response/demag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _convert_to_array(susceptibility, n):
6666
if (
6767
hasattr(susceptibility, "__len__")
6868
and len(susceptibility) == 3
69-
and not isinstance(susceptibility[0], (list, tuple, np.ndarray))
69+
and not isinstance(susceptibility[0], list | tuple | np.ndarray)
7070
):
7171
# This is a 3-vector, not a list of 3 items
7272
susis = np.tile(susceptibility, (n, 1))

tests/test_basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_apply_demag_integration():
3333

3434

3535
@pytest.mark.parametrize(
36-
"test_case,susceptibility_input,expected_output",
36+
("test_case", "susceptibility_input", "expected_output"),
3737
[
3838
pytest.param(
3939
"source_scalar",
@@ -115,7 +115,7 @@ def test_get_susceptibilities_hierarchy():
115115

116116

117117
@pytest.mark.parametrize(
118-
"error_case,setup_func,error_message",
118+
("error_case", "setup_func", "error_message"),
119119
[
120120
pytest.param(
121121
"no_susceptibility",

0 commit comments

Comments
 (0)