--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py Sat Apr 10 15:11:43 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py Sat Apr 10 15:18:24 2021 +0200 @@ -605,10 +605,13 @@ finallyReturn = stmt break - if (tryHasReturn or exceptHasReturn) and finallyHasReturn: - if finallyReturn is not None: - self.__error(finallyReturn.lineno - 1, - finallyReturn.col_offset, "Y107") + if ( + (tryHasReturn or exceptHasReturn) and + finallyHasReturn and + finallyReturn is not None + ): + self.__error(finallyReturn.lineno - 1, + finallyReturn.col_offset, "Y107") def __check108(self, node): """ @@ -1579,7 +1582,7 @@ ) isException = isException or ( isinstance(node.func, ast.Attribute) and - node.func.attr in ["get", "insert",] + node.func.attr in ("get", "insert") ) if hasBareNumeric and not isException: