Skip to content

Commit

Permalink
return type hint refers to the direct subclass not to the superclass
Browse files Browse the repository at this point in the history
  • Loading branch information
MAfarrag committed Dec 12, 2024
1 parent fcde9f1 commit fa91565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydrolib/tools/ext_old_to_new/main_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit fa91565

Please sign in to comment.