Skip to content

Commit

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


@overload
def dataset_factory(
type: Literal[
"strds",
Expand All @@ -82,6 +83,19 @@ def dataset_factory(
"vector",
],
id: str,
) -> (
SpaceTimeRasterDataset
| SpaceTimeRaster3DDataset
| SpaceTimeVectorDataset
| RasterDataset
| Raster3DDataset
| VectorDataset
):
pass


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

0 comments on commit 97ddd7c

Please sign in to comment.