From 9bb20fdb98bb57386fd9834f79737353ed5c5cc3 Mon Sep 17 00:00:00 2001 From: Andreas Eknes Lie Date: Thu, 16 Jan 2025 15:14:18 +0100 Subject: [PATCH] Fix formatting --- komodo/release_transpiler.py | 3 +-- tests/test_matrix.py | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/komodo/release_transpiler.py b/komodo/release_transpiler.py index 76b85bda..bb1b86d7 100755 --- a/komodo/release_transpiler.py +++ b/komodo/release_transpiler.py @@ -3,10 +3,9 @@ import argparse import os import re -from typing import Dict, Union, Optional +from typing import Dict, Optional, Sequence, Union import yaml -from typing_extensions import Sequence from komodo.matrix import format_release, get_matrix from komodo.prettier import load_yaml, write_to_file diff --git a/tests/test_matrix.py b/tests/test_matrix.py index 1f6bb21e..76042105 100644 --- a/tests/test_matrix.py +++ b/tests/test_matrix.py @@ -53,7 +53,5 @@ def test_get_matrix_base(test_input, expected): ], ) def test_get_matrix(rhel_ver, py_ver, other_ver, expected_yield): - yielded = [] - for mat in matrix.get_matrix(rhel_ver, py_ver, other_ver): - yielded.append(mat) + yielded = list(matrix.get_matrix(rhel_ver, py_ver, other_ver)) assert yielded == expected_yield