mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-24 23:55:21 +00:00
Use type hinting generics in standard collections (#19046)
aka PEP 585, added in Python 3.9 - https://peps.python.org/pep-0585/ - https://docs.astral.sh/ruff/rules/non-pep585-annotation/
This commit is contained in:
committed by
GitHub
parent
cba3a814c6
commit
fc244bb592
@@ -19,7 +19,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
from typing import Callable, Tuple
|
||||
from typing import Callable
|
||||
from unittest.mock import Mock, call
|
||||
|
||||
from twisted.internet import defer
|
||||
@@ -149,7 +149,7 @@ class CallbacksTestCase(unittest.HomeserverTestCase):
|
||||
|
||||
def _run_interaction(
|
||||
self, func: Callable[[LoggingTransaction], object]
|
||||
) -> Tuple[Mock, Mock]:
|
||||
) -> tuple[Mock, Mock]:
|
||||
"""Run the given function in a database transaction, with callbacks registered.
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user