From 2bf86eb19c1fde3eccc9645e2b0981b800753c6b Mon Sep 17 00:00:00 2001 From: Ahmad Nawab Date: Mon, 29 Apr 2024 11:32:42 +0200 Subject: [PATCH] Appease pylint --- loki/dimension.py | 2 +- transformations/tests/test_block_index_inject.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/loki/dimension.py b/loki/dimension.py index a7611b403..48103b496 100644 --- a/loki/dimension.py +++ b/loki/dimension.py @@ -131,6 +131,6 @@ def index_expressions(self): exprs = [self.index,] if self._index_aliases: - exprs += [alias for alias in self._index_aliases] + exprs += list(self._index_aliases) return as_tuple(exprs) diff --git a/transformations/tests/test_block_index_inject.py b/transformations/tests/test_block_index_inject.py index 547ae9e18..af022ab59 100644 --- a/transformations/tests/test_block_index_inject.py +++ b/transformations/tests/test_block_index_inject.py @@ -324,4 +324,4 @@ def test_blockview_to_fieldview_exception(frontend, horizontal): item.trafo_data['foobar'] = {'definitions': []} with pytest.raises(RuntimeError): BlockViewToFieldViewTransformation(horizontal, key='foobar').apply(kernel, item=item, role='kernel', - targets=('compute',)) \ No newline at end of file + targets=('compute',))