From 9d919da7fffc69aa46f9ec997878ad23ebe84d8b Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 27 Oct 2020 11:59:40 +0000 Subject: [PATCH] Fix mypy --- synapse/http/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/http/site.py b/synapse/http/site.py index dd0dd61c28..6e83bfc529 100644 --- a/synapse/http/site.py +++ b/synapse/http/site.py @@ -283,7 +283,7 @@ class SynapseRequest(Request): elif self.requester is not None: # This shouldn't happen, but we log it so we don't lose information # and can see that we're doing something wrong. - authenticated_entity = repr(self.requester) + authenticated_entity = repr(self.requester) # type: ignore[unreachable] # ...or could be raw utf-8 bytes in the User-Agent header. # N.B. if you don't do this, the logger explodes cryptically