--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/AstUtilities.py Mon May 22 19:46:19 2023 +0200 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/AstUtilities.py Mon May 22 19:53:41 2023 +0200 @@ -73,6 +73,17 @@ node.value, (bytes, str, numbers.Number) ) + def isEllipsis(node): + """ + Function to check that a node is an ellipsis. + + @param node reference to the node to check + @type ast.AST + @return flag indicating an ellipsis + @rtype bool + """ + return isinstance(node, ast.Constant) and node.value is Ellipsis + def getValue(node): """ Function to extract the value of a node. @@ -146,6 +157,17 @@ """ return isinstance(node, ast.NameConstant) + def isEllipsis(node): + """ + Function to check that a node is an ellipsis. + + @param node reference to the node to check + @type ast.AST + @return flag indicating an ellipsis + @rtype bool + """ + return isinstance(node, ast.Ellipsis) + def getValue(node): """ Function to extract the value of a node.