From atheist Christine Hayes’ Yale lectures:
Secondly, remember that the Bible isn’t a manual of religion. It’s not a book of systematic theology. It doesn’t set out certain dogmas about God, and you need to be careful not to impose upon the Bible, theological ideas and beliefs that arose centuries after the bulk of the Bible was written — for example, a belief in a heaven and a hell as a system of reward or punishment, or the belief in a God that doesn’t change his mind. The character Yahweh in the Bible changes his mind; it’s just a fact of the text.