In pet inheritance, the pet cannot be changed once it is adopted. For related information, players can click "i" button in pupil quests page.
However, you can break the bond, but please note that the masters can not take a new pupil in for 24 hours after breaking a bond.