mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-25 14:10:26 -04:00
Add more missing type hints to tests. (#15028)
This commit is contained in:
parent
4eed7b2ede
commit
30509a1010
14 changed files with 124 additions and 111 deletions
|
@ -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.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue