Previously `cached_result` was either set or deleted. Type annotations cannot handle this, so use `None` for the non-set state instead.