-
Use ContextManager with base.Get and base.Put to identify them as supporting the context manager protocol. https://mypy.readthedocs.io/en/latest/protocols.html#context-manager-protocols Also update __exit__() methods to: - Use BaseException instead of Exception for exc_type and exc_value args - Return Optional[bool] instead of None