Pennsylvania constitution
Article IV: the executive
Section 5

No person shall be eligible to the office of Governor, Lieutenant Governor or Attorney General except a citizen of the United States, who shall have attained the age of thirty years, and have been seven years next preceding his election an inhabitant of this Commonwealth, unless he shall have been absent on the public business of the United States or of this Commonwealth. No person shall be eligible to the office of Attorney General except a member of the bar of the Supreme Court of Pennsylvania.