summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-08-12 14:03:08 +0100
committerGitHub <noreply@github.com>2020-08-12 14:03:08 +0100
commit9d1e4942ab728ebfe09ff9a63c66708ceaaf7591 (patch)
tree263d97d6937a48a4cdef067b961aa4d593ce71d2 /synapse/federation
parentMerge pull request #8060 from matrix-org/erikj/type_server (diff)
downloadsynapse-9d1e4942ab728ebfe09ff9a63c66708ceaaf7591.tar.xz
Fix typing for notifier (#8064)
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/sender/transaction_manager.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/federation/sender/transaction_manager.py b/synapse/federation/sender/transaction_manager.py
index 8280f8b900..c7f6cb3d73 100644
--- a/synapse/federation/sender/transaction_manager.py
+++ b/synapse/federation/sender/transaction_manager.py
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 import logging
-from typing import TYPE_CHECKING, List
+from typing import TYPE_CHECKING, List, Tuple
 
 from canonicaljson import json
 
@@ -54,7 +54,10 @@ class TransactionManager(object):
 
     @measure_func("_send_new_transaction")
     async def send_new_transaction(
-        self, destination: str, pending_pdus: List[EventBase], pending_edus: List[Edu]
+        self,
+        destination: str,
+        pending_pdus: List[Tuple[EventBase, int]],
+        pending_edus: List[Edu],
     ):
 
         # Make a transaction-sending opentracing span. This span follows on from