diff -r 1fd5ea95c0e3 -r f702f6781b05 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsChecker.py --- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsChecker.py Sat Jun 08 19:11:03 2024 +0200 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsChecker.py Sun Jun 09 16:49:06 2024 +0200 @@ -204,8 +204,8 @@ # Type ignores are provided by ast at the module level & we'll need them later # when deciding whether or not to emit errors for a given function typeIgnoreLineno = {ti.lineno for ti in self.__tree.type_ignores} - hasMypyIgnoreErrors = ( - any("# mypy: ignore-errors" in line for line in self.__source[:5]) + hasMypyIgnoreErrors = any( + "# mypy: ignore-errors" in line for line in self.__source[:5] ) suppressNoneReturning = self.__args.get(