diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-02-08 16:29:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 16:29:49 -0500 |
commit | 30509a1010f10bc7924146cac57571c4b24914d7 (patch) | |
tree | 27f0185c1241923b423643751fcfb3c5d142f778 /tests/test_utils/logging_setup.py | |
parent | Add missing type hints to tests. (#15027) (diff) | |
download | synapse-30509a1010f10bc7924146cac57571c4b24914d7.tar.xz |
Add more missing type hints to tests. (#15028)
Diffstat (limited to 'tests/test_utils/logging_setup.py')
-rw-r--r-- | tests/test_utils/logging_setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_utils/logging_setup.py b/tests/test_utils/logging_setup.py index 304c7b98c5..b522163a34 100644 --- a/tests/test_utils/logging_setup.py +++ b/tests/test_utils/logging_setup.py @@ -25,7 +25,7 @@ class ToTwistedHandler(logging.Handler): tx_log = twisted.logger.Logger() - def emit(self, record): + def emit(self, record: logging.LogRecord) -> None: log_entry = self.format(record) log_level = record.levelname.lower().replace("warning", "warn") self.tx_log.emit( @@ -33,7 +33,7 @@ class ToTwistedHandler(logging.Handler): ) -def setup_logging(): +def setup_logging() -> None: """Configure the python logging appropriately for the tests. (Logs will end up in _trial_temp.) |