Changed the reference of TypeError in the documentation