Skip to content
Snippets Groups Projects
Unverified Commit fe593ef9 authored by Brendan Abolivier's avatar Brendan Abolivier
Browse files

Attempt at appeasing the gods of mypy

parent 5ec2077b
No related branches found
No related tags found
No related merge requests found
...@@ -511,7 +511,7 @@ class PreserveLoggingContext(object): ...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment