diff --git a/src/dictIO/formatter.py b/src/dictIO/formatter.py index 5a682896..20f12441 100644 --- a/src/dictIO/formatter.py +++ b/src/dictIO/formatter.py @@ -396,7 +396,7 @@ def to_string( dict.data = sorted_data # Create the string representation of the dictionary in its basic structure. - s += self.format_dict(dict.data) + s += self.format_dict(dict.data) # type: ignore # The following elements a CppDict's .data attribute # are usually still substituted by placeholders: diff --git a/tests/test_dictReader.py b/tests/test_dictReader.py index 4615db37..dd5cf19b 100644 --- a/tests/test_dictReader.py +++ b/tests/test_dictReader.py @@ -248,21 +248,21 @@ def test_eval_expressions_with_included_numpy_expressions(): dict_out = dict.data assert dict_out["keysContainingNumpyExpressions"]["npKeyA"] == 2 - assert_array_equal(dict_out["keysContainingNumpyExpressions"]["npKeyB"], [[1, 1], [1, 1]]) + assert_array_equal(dict_out["keysContainingNumpyExpressions"]["npKeyB"], [[1, 1], [1, 1]]) # type: ignore assert_array_equal(dict_out["keysContainingNumpyExpressions"]["npKeyC"], [2, 2, 2]) assert_array_equal( dict_out["keysContainingNumpyExpressions"]["npKeyD"], - [[2, 0, 0], [0, 2, 0], [0, 0, 2]], + [[2, 0, 0], [0, 2, 0], [0, 0, 2]], # type: ignore ) assert_array_equal( dict_out["keysContainingNumpyExpressions"]["npKeyE"], - [[2, 0, 0], [0, 2, 0], [0, 0, 2]], + [[2, 0, 0], [0, 2, 0], [0, 0, 2]], # type: ignore ) - assert_array_equal(dict_out["keysContainingNumpyExpressions"]["npKeyZ"], [[0, 0, 0, 0]]) + assert_array_equal(dict_out["keysContainingNumpyExpressions"]["npKeyZ"], [[0, 0, 0, 0]]) # type: ignore def test_reread_string_literals():