--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py Thu Apr 08 17:27:12 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py Thu Apr 08 18:27:47 2021 +0200 @@ -207,15 +207,20 @@ Function to compile one Python source file to Python bytecode and to perform a pyflakes check. - @param filename source filename (string) - @param codestring string containing the code to compile (string) - @param checkFlakes flag indicating to do a pyflakes check (boolean) + @param filename source filename + @type str + @param codestring string containing the code to compile + @type str + @param checkFlakes flag indicating to do a pyflakes check + @type bool @param ignoreStarImportWarnings flag indicating to - ignore 'star import' warnings (boolean) + ignore 'star import' warnings + @type bool @return dictionary with the keys 'error' and 'warnings' which hold a list containing details about the error/ warnings (file name, line number, column, codestring (only at syntax errors), the message, a list with arguments for the message) + @rtype dict """ import builtins @@ -296,9 +301,9 @@ warnings = Checker(module, filename, withDoctest=True) warnings.messages.sort(key=lambda a: a.lineno) for warning in warnings.messages: - if ignoreStarImportWarnings and ( - isinstance(warning, ImportStarUsed) or - isinstance(warning, ImportStarUsage) + if ( + ignoreStarImportWarnings and + isinstance(warning, (ImportStarUsed, ImportStarUsage)) ): continue