mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Attempt at appeasing the gods of mypy
This commit is contained in:
parent
5ec2077bf9
commit
fe593ef990
@ -511,7 +511,7 @@ class PreserveLoggingContext(object):
|
|||||||
|
|
||||||
__slots__ = ["current_context", "new_context", "has_parent"]
|
__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:
|
if new_context is None:
|
||||||
self.new_context = LoggingContext.sentinel # type: LoggingContextOrSentinel
|
self.new_context = LoggingContext.sentinel # type: LoggingContextOrSentinel
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user