eric6/Documentation/Source/eric6.Plugins.CheckerPlugins.CodeStyleChecker.Simplify.SimplifyNodeVisitor.html

changeset 8215
fc5d68a6889e
parent 8202
df194f43119c
child 8248
b00c1c6cc312
diff -r 51f0d3e047ec -r fc5d68a6889e eric6/Documentation/Source/eric6.Plugins.CheckerPlugins.CodeStyleChecker.Simplify.SimplifyNodeVisitor.html
--- a/eric6/Documentation/Source/eric6.Plugins.CheckerPlugins.CodeStyleChecker.Simplify.SimplifyNodeVisitor.html	Sat Apr 10 16:13:07 2021 +0200
+++ b/eric6/Documentation/Source/eric6.Plugins.CheckerPlugins.CodeStyleChecker.Simplify.SimplifyNodeVisitor.html	Sat Apr 10 16:13:22 2021 +0200
@@ -146,12 +146,20 @@
 <td>Private method to check for classes that should be "dataclasses".</td>
 </tr>
 <tr>
-<td><a href="#SimplifyNodeVisitor.__check120">__check120</a></td>
+<td><a href="#SimplifyNodeVisitor.__check120_121">__check120_121</a></td>
 <td>Private method to check for classes that inherit from object.</td>
 </tr>
 <tr>
-<td><a href="#SimplifyNodeVisitor.__check121">__check121</a></td>
-<td>Private method to check for assignments that could be converted into an augmented assignment</td>
+<td><a href="#SimplifyNodeVisitor.__check122">__check122</a></td>
+<td>Private method to check for all if-blocks which only check if a key is in a dictionary.</td>
+</tr>
+<tr>
+<td><a href="#SimplifyNodeVisitor.__check181">__check181</a></td>
+<td>Private method to check for assignments that could be converted into an augmented assignment.</td>
+</tr>
+<tr>
+<td><a href="#SimplifyNodeVisitor.__check182">__check182</a></td>
+<td>Private method to check for calls of type 'super(Foo, self)' that could be shortened to 'super()'.</td>
 </tr>
 <tr>
 <td><a href="#SimplifyNodeVisitor.__check201">__check201</a></td>
@@ -218,6 +226,14 @@
 <td>Private method to check for Yoda conditions.</td>
 </tr>
 <tr>
+<td><a href="#SimplifyNodeVisitor.__check401">__check401</a></td>
+<td>Private method to check for bare boolean function arguments.</td>
+</tr>
+<tr>
+<td><a href="#SimplifyNodeVisitor.__check402">__check402</a></td>
+<td>Private method to check for bare numeric function arguments.</td>
+</tr>
+<tr>
 <td><a href="#SimplifyNodeVisitor.__getDuplicatedIsinstanceCall">__getDuplicatedIsinstanceCall</a></td>
 <td>Private method to get a list of isinstance arguments which could be combined.</td>
 </tr>
@@ -585,9 +601,9 @@
 reference to the AST node to be checked
 </dd>
 </dl>
-<a NAME="SimplifyNodeVisitor.__check120" ID="SimplifyNodeVisitor.__check120"></a>
-<h4>SimplifyNodeVisitor.__check120</h4>
-<b>__check120</b>(<i>node</i>)
+<a NAME="SimplifyNodeVisitor.__check120_121" ID="SimplifyNodeVisitor.__check120_121"></a>
+<h4>SimplifyNodeVisitor.__check120_121</h4>
+<b>__check120_121</b>(<i>node</i>)
 
 <p>
         Private method to check for classes that inherit from object.
@@ -599,13 +615,28 @@
 reference to the AST node to be checked
 </dd>
 </dl>
-<a NAME="SimplifyNodeVisitor.__check121" ID="SimplifyNodeVisitor.__check121"></a>
-<h4>SimplifyNodeVisitor.__check121</h4>
-<b>__check121</b>(<i>node</i>)
+<a NAME="SimplifyNodeVisitor.__check122" ID="SimplifyNodeVisitor.__check122"></a>
+<h4>SimplifyNodeVisitor.__check122</h4>
+<b>__check122</b>(<i>node</i>)
+
+<p>
+        Private method to check for all if-blocks which only check if a key
+        is in a dictionary.
+</p>
+<dl>
+
+<dt><i>node</i> (ast.If)</dt>
+<dd>
+reference to the AST node to be checked
+</dd>
+</dl>
+<a NAME="SimplifyNodeVisitor.__check181" ID="SimplifyNodeVisitor.__check181"></a>
+<h4>SimplifyNodeVisitor.__check181</h4>
+<b>__check181</b>(<i>node</i>)
 
 <p>
         Private method to check for assignments that could be converted into
-        an augmented assignment
+        an augmented assignment.
 </p>
 <dl>
 
@@ -614,6 +645,21 @@
 reference to the AST node to be checked
 </dd>
 </dl>
+<a NAME="SimplifyNodeVisitor.__check182" ID="SimplifyNodeVisitor.__check182"></a>
+<h4>SimplifyNodeVisitor.__check182</h4>
+<b>__check182</b>(<i>node</i>)
+
+<p>
+        Private method to check for calls of type 'super(Foo, self)' that could
+        be shortened to 'super()'.
+</p>
+<dl>
+
+<dt><i>node</i> (ast.Call)</dt>
+<dd>
+reference to the AST node to be checked
+</dd>
+</dl>
 <a NAME="SimplifyNodeVisitor.__check201" ID="SimplifyNodeVisitor.__check201"></a>
 <h4>SimplifyNodeVisitor.__check201</h4>
 <b>__check201</b>(<i>node</i>)
@@ -841,6 +887,34 @@
 reference to the AST node to be checked
 </dd>
 </dl>
+<a NAME="SimplifyNodeVisitor.__check401" ID="SimplifyNodeVisitor.__check401"></a>
+<h4>SimplifyNodeVisitor.__check401</h4>
+<b>__check401</b>(<i>node</i>)
+
+<p>
+        Private method to check for bare boolean function arguments.
+</p>
+<dl>
+
+<dt><i>node</i> (ast.Call)</dt>
+<dd>
+reference to the AST node to be checked
+</dd>
+</dl>
+<a NAME="SimplifyNodeVisitor.__check402" ID="SimplifyNodeVisitor.__check402"></a>
+<h4>SimplifyNodeVisitor.__check402</h4>
+<b>__check402</b>(<i>node</i>)
+
+<p>
+        Private method to check for bare numeric function arguments.
+</p>
+<dl>
+
+<dt><i>node</i> (ast.Call)</dt>
+<dd>
+reference to the AST node to be checked
+</dd>
+</dl>
 <a NAME="SimplifyNodeVisitor.__getDuplicatedIsinstanceCall" ID="SimplifyNodeVisitor.__getDuplicatedIsinstanceCall"></a>
 <h4>SimplifyNodeVisitor.__getDuplicatedIsinstanceCall</h4>
 <b>__getDuplicatedIsinstanceCall</b>(<i>node</i>)

eric ide

mercurial