Skip to content

Commit 6ede14f

Browse files
committed
[GEOPY-2561] fix another return typehint
1 parent b93edd9 commit 6ede14f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • simpeg_drivers/plate_simulation/sweep

simpeg_drivers/plate_simulation/sweep/driver.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# '
99
# '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
1010

11+
from __future__ import annotations
12+
1113
import shutil
1214
import sys
1315
from pathlib import Path
@@ -23,6 +25,7 @@
2325
uuid_from_values,
2426
)
2527
from geoh5py.ui_json.utils import flatten
28+
from typing_extensions import Self
2629

2730
from simpeg_drivers.driver import BaseDriver
2831
from simpeg_drivers.plate_simulation.driver import PlateSimulationDriver
@@ -82,7 +85,7 @@ def validate_out_group(self, out_group: SimPEGGroup | None) -> SimPEGGroup:
8285
return out_group
8386

8487
@classmethod
85-
def start(cls, filepath: str | Path, mode="r", **_) -> BaseDriver:
88+
def start(cls, filepath: str | Path, mode="r", **_) -> Self:
8689
"""Start the parameter sweep from a ui.json file."""
8790
logger.info("Loading input file . . .")
8891
filepath = Path(filepath).resolve()

0 commit comments

Comments
 (0)