結果 : python check if type has attribute