fix TypeError message
Merge pull request #1611 from h2so5/inspect-type

fix TypeError message