17 Then, after giving the definitions of the Councils of Florence and Trent, confirmed by the Council of the Vatican, Pope Leo continues: Consequently it is not to the point to suggest that the Holy Spirit used men as His instruments for writing, and that therefore, while no error is referable to the primary Author, it may well be due to the inspired authors themselves. For by supernatural power the Holy Spirit so stirred them and moved them to write, so assisted them as they wrote, that their minds could rightly conceive only those and all those things which He himself bade them conceive; only such things could they faithfully commit to writing and aptly express with unerring truth; else God would not be the Author of the entirety of Sacred Scripture.
Source: Spiritus Paraclitus (Vatican.va)