Fix attribute error being raised for 'id'.
Fix attribute error being raised for 'id'.

Added a check to make sure that the types (if they exist
on a function) have the 'id' attribute.

terrencepreilly/darglint,terrencepreilly/darglint