From fa91565582c887f9ae34f4366b612ac3b54fa2a7 Mon Sep 17 00:00:00 2001 From: Mostafa Farrag Date: Thu, 12 Dec 2024 13:29:18 +0100 Subject: [PATCH] return type hint refers to the direct subclass not to the superclass --- hydrolib/tools/ext_old_to_new/main_converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hydrolib/tools/ext_old_to_new/main_converter.py b/hydrolib/tools/ext_old_to_new/main_converter.py index f3425f5f9..a9a761c36 100644 --- a/hydrolib/tools/ext_old_to_new/main_converter.py +++ b/hydrolib/tools/ext_old_to_new/main_converter.py @@ -5,7 +5,7 @@ from typing import Tuple, Union from hydrolib.core import __version__ -from hydrolib.core.basemodel import FileModel, PathOrStr +from hydrolib.core.basemodel import PathOrStr from hydrolib.core.dflowfm.ext.models import Boundary, ExtModel, Lateral, Meteo from hydrolib.core.dflowfm.extold.models import ExtOldModel from hydrolib.core.dflowfm.inifield.models import ( @@ -53,7 +53,7 @@ def ext_old_to_new( inifieldfile: PathOrStr = None, structurefile: PathOrStr = None, backup: bool = False, -) -> Union[Tuple[ExtOldModel, FileModel, FileModel, FileModel], None]: +) -> Union[Tuple[ExtOldModel, ExtModel, IniFieldModel, StructureModel], None]: """ Convert old external forcing file to new format files. When the output files are existing, output will be appended to them.