Attempt at appeasing the gods of mypy

This commit is contained in:
Brendan Abolivier 2020-03-10 14:19:06 +00:00
parent 5ec2077bf9
commit fe593ef990
No known key found for this signature in database
GPG key ID: 1E015C145F1916CD

View file

@ -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: