Skip to content

Commit

Permalink
temporal: Add dataset_factory overload with str type for type argument
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Oct 27, 2024
1 parent eb1a788 commit fb023d0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions python/grass/temporal/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@ def dataset_factory(type: Literal["vect", "vector"], id: str) -> VectorDataset:
pass


@overload
def dataset_factory(
type: str, id: str
) -> (
SpaceTimeRasterDataset
| SpaceTimeRaster3DDataset
| SpaceTimeVectorDataset
| RasterDataset
| Raster3DDataset
| VectorDataset
| None
):
pass


def dataset_factory(
type: str, id: str
) -> (
Expand Down

0 comments on commit fb023d0

Please sign in to comment.