mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-31 13:44:16 -04:00
Add missing type hints in tests (#14879)
* FIx-up type hints in tests.logging. * Add missing type hints to test_transactions.
This commit is contained in:
parent
345576bc34
commit
fc35e0673f
8 changed files with 75 additions and 42 deletions
|
@ -153,7 +153,7 @@ class LogContextScopeManagerTestCase(TestCase):
|
|||
|
||||
scopes = []
|
||||
|
||||
async def task(i: int):
|
||||
async def task(i: int) -> None:
|
||||
scope = start_active_span(
|
||||
f"task{i}",
|
||||
tracer=self._tracer,
|
||||
|
@ -165,7 +165,7 @@ class LogContextScopeManagerTestCase(TestCase):
|
|||
self.assertEqual(self._tracer.active_span, scope.span)
|
||||
scope.close()
|
||||
|
||||
async def root():
|
||||
async def root() -> None:
|
||||
with start_active_span("root span", tracer=self._tracer) as root_scope:
|
||||
self.assertEqual(self._tracer.active_span, root_scope.span)
|
||||
scopes.append(root_scope)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue