synapse/changelog.d
Erik Johnston b74c29f694
Move towards a dedicated Duration class (#19223)
We have various constants to try and avoid mistyping of durations, e.g.
`ONE_HOUR_SECONDS * MILLISECONDS_PER_SECOND`, however this can get a
little verbose and doesn't help with typing.

Instead, let's move towards a dedicated `Duration` class (basically a
[`timedelta`](https://docs.python.org/3/library/datetime.html#timedelta-objects)
with helper methods).

This PR introduces the new types and converts all usages of the existing
constants with it. Future PRs may work to move the clock methods to also
use it (e.g. `call_later` and `looping_call`).

Reviewable commit-by-commit.
2025-11-26 10:56:59 +00:00
..
.gitignore
19208.misc Export SYNAPSE_SUPPORTED_COMPLEMENT_TEST_PACKAGES from scripts-dev/complement.sh (#19208) 2025-11-21 19:01:43 -06:00
19209.misc Refactor scripts-dev/complement.sh logic to avoid exit (#19209) 2025-11-21 10:51:19 -06:00
19211.misc Expire sliding sync connections (#19211) 2025-11-25 10:20:47 +00:00
19219.misc Put MSC2666 endpoint behind an experimental flag (#19219) 2025-11-25 18:03:33 +00:00
19221.misc Allow ruff to auto-fix trailing spaces in multi-line comments (#19221) 2025-11-25 14:09:48 +00:00
19223.misc Move towards a dedicated Duration class (#19223) 2025-11-26 10:56:59 +00:00
19225.removal Stop building wheels for MacOS (#19225) 2025-11-26 10:32:39 +00:00