def should_display_warnings_for(to_type):
if not hasattr(to_type, '<STR_LIT>'):<EOL><INDENT>return True<EOL><DEDENT>elif to_type.__module__ in {'<STR_LIT>'} or to_type.__module__.startswith('<STR_LIT>')or to_type.__name__ in {'<STR_LIT>'}:<EOL><INDENT>return False<EOL><DEDENT>elif issubclass(to_type, int) or issubclass(to_type, str)or issubclass(to_type, float) or issubclass(to_type, bool):<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Central method where we control whether warnings should be displayed