From 97ddd7ce81e644b2fe04db66737e55cda805de46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 27 Oct 2024 00:55:14 +0000 Subject: [PATCH] temporal: Add dataset_factory implementation with str type for type argument --- python/grass/temporal/factory.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/python/grass/temporal/factory.py b/python/grass/temporal/factory.py index 5408e091fa6..559b219ed33 100644 --- a/python/grass/temporal/factory.py +++ b/python/grass/temporal/factory.py @@ -68,6 +68,7 @@ def dataset_factory(type: Literal["vect", "vector"], id: str) -> VectorDataset: pass +@overload def dataset_factory( type: Literal[ "strds", @@ -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