Skip to content

Commit edb5bff

Browse files
committed
[GEOPY-2561] fix return typehint
1 parent 1b06382 commit edb5bff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

simpeg_drivers/driver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
from pathlib import Path
2727
from time import time
2828

29+
from typing_extensions import Self
30+
2931
import numpy as np
3032
from dask import config as dconf
3133

@@ -738,7 +740,7 @@ def configure_dask(self):
738740
dconf.set(scheduler="threads", pool=ThreadPool(n_cpu))
739741

740742
@classmethod
741-
def start(cls, filepath: str | Path | InputFile, **kwargs) -> BaseDriver:
743+
def start(cls, filepath: str | Path | InputFile, **kwargs) -> Self:
742744
"""
743745
Start the inversion driver.
744746

0 commit comments

Comments
 (0)