Pope Pius XII
Humani Generis §20
Humani Generis: Concerning Some False Opinions Threatening to Undermine the Foundations of Catholic Doctrine
20 Nor must it be thought that what is expounded in Encyclical Letters does not of itself demand consent, since in writing such Letters the Popes do not exercise the supreme power of their Teaching Authority. For these matters are taught with the ordinary teaching authority, of which it is true to say: "He who heareth you, heareth me"; and generally what is expounded and inculcated in Encyclical Letters already for other reasons appertains to Catholic doctrine. But if the Supreme Pontiffs in their official documents purposely pass judgment on a matter up to that time under dispute, it is obvious that that matter, according to the mind and will of the Pontiffs, cannot be any longer considered a question open to discussion among theologians.
Source: Humani Generis (Vatican.va)