mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 19:54:56 -04:00
Fix additional type hints. (#9543)
Type hint fixes due to Twisted 21.2.0 adding type hints.
This commit is contained in:
parent
075c16b410
commit
7fdc6cefb3
9 changed files with 32 additions and 18 deletions
|
@ -28,7 +28,7 @@ class ToTwistedHandler(logging.Handler):
|
|||
def emit(self, record):
|
||||
log_entry = self.format(record)
|
||||
log_level = record.levelname.lower().replace("warning", "warn")
|
||||
self.tx_log.emit(
|
||||
self.tx_log.emit( # type: ignore
|
||||
twisted.logger.LogLevel.levelWithName(log_level), "{entry}", entry=log_entry
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue