[GRASS-git] [OSGeo/grass] 5bb9b2: grass.temporal.datetime_math: Return a TypedDict f...
Edouard Choinière
noreply at github.com
Wed Jan 8 19:24:07 PST 2025
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 5bb9b2b160f5c8704bc697f4ddc1d9eb9a31af60
https://github.com/OSGeo/grass/commit/5bb9b2b160f5c8704bc697f4ddc1d9eb9a31af60
Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M python/grass/temporal/datetime_math.py
A python/grass/temporal/tests/test_datetime_math_compute_datetime_delta_test.py
M python/grass/temporal/unit_tests.py
Log Message:
-----------
grass.temporal.datetime_math: Return a TypedDict from compute_datetime_delta (#4700)
* grass.temporal.datetime_math: Return a TypedDict from compute_datetime_delta
* Use ternary operator `_day = 0 if start.day == 1 and end.day == 1 else day_diff` instead of `if`-`else`-block
* Update date in file header
* grass.temporal.datetime_math: Create pytest tests for compute_datetime_delta and datetime_delta dict
Removed corresponding tests from the deprecated python/grass/temporal/unit_tests.py file which isn't run
* Revert unintended changes in datetime_math
* DEBUG: Highlight test errors when month is wrongly initialized
* Rename test file to be catched by current pytest config
* temporal: Assign the TypedDict with default values and keep the original look of the variabled
* Update datetime_math.py
* Remove duplicated, but wrong, doc example
* tests: Update doctest with current dict order
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