mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-09 13:35:00 -04:00
Convert Transaction and Edu object to attrs (#10542)
Instead of wrapping the JSON into an object, this creates concrete instances for Transaction and Edu. This allows for improved type hints and simplified code.
This commit is contained in:
parent
60f0534b6e
commit
1de26b3467
8 changed files with 74 additions and 193 deletions
|
@ -143,7 +143,7 @@ class TransportLayerClient:
|
|||
"""Sends the given Transaction to its destination
|
||||
|
||||
Args:
|
||||
transaction (Transaction)
|
||||
transaction
|
||||
|
||||
Returns:
|
||||
Succeeds when we get a 2xx HTTP response. The result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue