[GRASS-git] [OSGeo/grass] ffcb9e: temporal: Add precise typing overloads to dataset_...
Edouard Choinière
noreply at github.com
Sun Oct 27 06:56:52 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: ffcb9e1621579bbfbf56e5417cb7946b4d2fe9cd
https://github.com/OSGeo/grass/commit/ffcb9e1621579bbfbf56e5417cb7946b4d2fe9cd
Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
Date: 2024-10-27 (Sun, 27 Oct 2024)
Changed paths:
M python/grass/temporal/factory.py
Log Message:
-----------
temporal: Add precise typing overloads to dataset_factory (#4600)
* temporal: Add precise typing overloads to dataset_factory
This enables type checkers like mypy or Pyright to understand the returned class from the string passed as the type argument
* temporal: Add typing overloads to dataset_factory
* temporal: Add dataset_factory implementation with str type for type argument
* temporal: Remove dataset_factory overload that listed all literal types
* temporal: Update dataset_factory file header
* temporal: Add dataset_factory overload with str type for type argument
* temporal: Accept None for id argument in dataset_factory overload as used in existing calls
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list