bpo-46437: remove useless hasattr from test_typing
#30704
Merged
hasattr from test_typing
#30704