diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-01-26 14:45:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-26 14:45:24 -0500 |
commit | fc35e0673f5b46ea0f5e53ef15626b14a452ca82 (patch) | |
tree | ca5cfd9a845b00e6b5e4d44da0e72a834db92459 /tests/logging/__init__.py | |
parent | Fix paginating /relations with a live token (#14866) (diff) | |
download | synapse-fc35e0673f5b46ea0f5e53ef15626b14a452ca82.tar.xz |
Add missing type hints in tests (#14879)
* FIx-up type hints in tests.logging. * Add missing type hints to test_transactions.
Diffstat (limited to 'tests/logging/__init__.py')
-rw-r--r-- | tests/logging/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/logging/__init__.py b/tests/logging/__init__.py index 1acf5666a8..1c5de95a80 100644 --- a/tests/logging/__init__.py +++ b/tests/logging/__init__.py @@ -13,9 +13,11 @@ # limitations under the License. import logging +from tests.unittest import TestCase -class LoggerCleanupMixin: - def get_logger(self, handler): + +class LoggerCleanupMixin(TestCase): + def get_logger(self, handler: logging.Handler) -> logging.Logger: """ Attach a handler to a logger and add clean-ups to remove revert this. """ |