This changes the arguments in clock functions to be `Duration` and converts call sites and constants into `Duration`. There are still some more functions around that should be converted (e.g. `timeout_deferred`), but we leave that to another PR. We also changes `.as_secs()` to return a float, as the rounding broke things subtly. The only reason to keep it (its the same as `timedelta.total_seconds()`) is for symmetry with `as_millis()`. Follows on from https://github.com/element-hq/synapse/pull/19223 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_admin.py | ||
| test_background_updates.py | ||
| test_device.py | ||
| test_event_reports.py | ||
| test_event.py | ||
| test_federation.py | ||
| test_jwks.py | ||
| test_media.py | ||
| test_registration_tokens.py | ||
| test_room.py | ||
| test_scheduled_tasks.py | ||
| test_server_notice.py | ||
| test_statistics.py | ||
| test_user.py | ||
| test_username_available.py | ||