From 518edbd27ab22ff2f1933d752bc9d29ee5860ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Fri, 13 Dec 2024 12:44:30 +0100 Subject: [PATCH] Fix ruff issues These issues sneaked into main via a rebase while ruff was upgraded --- src/ert/resources/forward_models/template_render.py | 3 ++- .../workflows/jobs/internal-gui/scripts/csv_export.py | 2 +- .../workflows/jobs/internal-gui/scripts/gen_data_rft_export.py | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ert/resources/forward_models/template_render.py b/src/ert/resources/forward_models/template_render.py index 935589063c5..70cdd27c568 100755 --- a/src/ert/resources/forward_models/template_render.py +++ b/src/ert/resources/forward_models/template_render.py @@ -2,7 +2,8 @@ import argparse import json import os -from typing import Any, Sequence +from collections.abc import Sequence +from typing import Any import jinja2 import yaml diff --git a/src/ert/resources/workflows/jobs/internal-gui/scripts/csv_export.py b/src/ert/resources/workflows/jobs/internal-gui/scripts/csv_export.py index 4d2d8b2309a..0cd80c8b67a 100644 --- a/src/ert/resources/workflows/jobs/internal-gui/scripts/csv_export.py +++ b/src/ert/resources/workflows/jobs/internal-gui/scripts/csv_export.py @@ -1,6 +1,6 @@ import json import os -from typing import Sequence +from collections.abc import Sequence import pandas diff --git a/src/ert/resources/workflows/jobs/internal-gui/scripts/gen_data_rft_export.py b/src/ert/resources/workflows/jobs/internal-gui/scripts/gen_data_rft_export.py index 2928f9d9029..0b603d9b413 100644 --- a/src/ert/resources/workflows/jobs/internal-gui/scripts/gen_data_rft_export.py +++ b/src/ert/resources/workflows/jobs/internal-gui/scripts/gen_data_rft_export.py @@ -1,7 +1,8 @@ import contextlib import json import os -from typing import Any, Sequence +from collections.abc import Sequence +from typing import Any import numpy import pandas as pd