結果 : check if type has attribute python