summary refs log tree commit diff
path: root/synapse/logging/context.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-03-10 14:19:06 +0000
committerBrendan Abolivier <babolivier@matrix.org>2020-03-10 14:19:06 +0000
commitfe593ef99097f16e7c325c574364536d4b221c92 (patch)
tree5626b94ea23e0b929e24814a7de8dd600e37cb92 /synapse/logging/context.py
parentLint (diff)
downloadsynapse-fe593ef99097f16e7c325c574364536d4b221c92.tar.xz
Attempt at appeasing the gods of mypy
Diffstat (limited to 'synapse/logging/context.py')
-rw-r--r--synapse/logging/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/logging/context.py b/synapse/logging/context.py
index 1eccc0e83f..56805120be 100644
--- a/synapse/logging/context.py
+++ b/synapse/logging/context.py
@@ -511,7 +511,7 @@ class PreserveLoggingContext(object):
 
     __slots__ = ["current_context", "new_context", "has_parent"]
 
-    def __init__(self, new_context: Optional[LoggingContext] = None) -> None:
+    def __init__(self, new_context: Optional[LoggingContextOrSentinel] = None) -> None:
         if new_context is None:
             self.new_context = LoggingContext.sentinel  # type: LoggingContextOrSentinel
         else: