element-synapse/synapse/replication/http
Erik Johnston 1bddd25a85
Port Clock functions to use Duration class (#19229)
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
2025-12-01 13:55:06 +00:00
..
__init__.py Merge branch 'release-v1.135' into develop 2025-07-30 14:04:29 +01:00
_base.py Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
account_data.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
deactivate_account.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
delayed_events.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
devices.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
federation.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
login.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
membership.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
presence.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
push.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
register.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
send_events.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
state.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
streams.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00