src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html

branch
eric7
changeset 10358
957c9de01d42
parent 10189
1ab3a4674cb4
child 10368
8765229e7cc8
diff -r ac30c311d35f -r 957c9de01d42 src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html
--- a/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html	Wed Nov 29 14:32:18 2023 +0100
+++ b/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html	Wed Nov 29 14:34:13 2023 +0100
@@ -175,6 +175,10 @@
 <td>Private method to check that re.sub/subn/split arguments flags/count/maxsplit are passed as keyword arguments.</td>
 </tr>
 <tr>
+<td><a href="#BugBearVisitor.__checkForM535">__checkForM535</a></td>
+<td>Private method to check that a static key isn't used in a dict comprehension.</td>
+</tr>
+<tr>
 <td><a href="#BugBearVisitor.__checkRedundantExcepthandlers">__checkRedundantExcepthandlers</a></td>
 <td>Private method to check for redundant exception types in an exception handler.</td>
 </tr>
@@ -195,6 +199,14 @@
 <td>Private method to get the names of a for loop.</td>
 </tr>
 <tr>
+<td><a href="#BugBearVisitor.__getDictCompLoopVarNames">__getDictCompLoopVarNames</a></td>
+<td>Private method to get the names of comprehension loop variables.</td>
+</tr>
+<tr>
+<td><a href="#BugBearVisitor.__getNamesFromTuple">__getNamesFromTuple</a></td>
+<td>Private method to get the names from an ast.Tuple node.</td>
+</tr>
+<tr>
 <td><a href="#BugBearVisitor.__isIdentifier">__isIdentifier</a></td>
 <td>Private method to check if arg is a valid identifier.</td>
 </tr>
@@ -303,6 +315,10 @@
 <td>Public method to check imports.</td>
 </tr>
 <tr>
+<td><a href="#BugBearVisitor.visit_ImportFrom">visit_ImportFrom</a></td>
+<td>Public method to check from imports.</td>
+</tr>
+<tr>
 <td><a href="#BugBearVisitor.visit_JoinedStr">visit_JoinedStr</a></td>
 <td>Public method to handle f-string arguments.</td>
 </tr>
@@ -646,6 +662,24 @@
 reference to the node to be processed
 </dd>
 </dl>
+<a NAME="BugBearVisitor.__checkForM535" ID="BugBearVisitor.__checkForM535"></a>
+<h4>BugBearVisitor.__checkForM535</h4>
+<b>__checkForM535</b>(<i>node: ast.DictComp</i>)
+
+<p>
+        Private method to check that a static key isn't used in a dict comprehension.
+</p>
+<p>
+        Record a warning if a likely unchanging key is used - either a constant,
+        or a variable that isn't coming from the generator expression.
+</p>
+<dl>
+
+<dt><i>node</i> (ast.DictComp)</dt>
+<dd>
+reference to the node to be processed
+</dd>
+</dl>
 <a NAME="BugBearVisitor.__checkRedundantExcepthandlers" ID="BugBearVisitor.__checkRedundantExcepthandlers"></a>
 <h4>BugBearVisitor.__checkRedundantExcepthandlers</h4>
 <b>__checkRedundantExcepthandlers</b>(<i>names, node</i>)
@@ -780,6 +814,58 @@
 TYPE
 </dd>
 </dl>
+<a NAME="BugBearVisitor.__getDictCompLoopVarNames" ID="BugBearVisitor.__getDictCompLoopVarNames"></a>
+<h4>BugBearVisitor.__getDictCompLoopVarNames</h4>
+<b>__getDictCompLoopVarNames</b>(<i>node</i>)
+
+<p>
+        Private method to get the names of comprehension loop variables.
+</p>
+<dl>
+
+<dt><i>node</i> (ast.DictComp)</dt>
+<dd>
+ast node to be processed
+</dd>
+</dl>
+<dl>
+<dt>Yield:</dt>
+<dd>
+loop variable names
+</dd>
+</dl>
+<dl>
+<dt>Yield Type:</dt>
+<dd>
+str
+</dd>
+</dl>
+<a NAME="BugBearVisitor.__getNamesFromTuple" ID="BugBearVisitor.__getNamesFromTuple"></a>
+<h4>BugBearVisitor.__getNamesFromTuple</h4>
+<b>__getNamesFromTuple</b>(<i>node</i>)
+
+<p>
+        Private method to get the names from an ast.Tuple node.
+</p>
+<dl>
+
+<dt><i>node</i> (ast.Tuple)</dt>
+<dd>
+ast node to be processed
+</dd>
+</dl>
+<dl>
+<dt>Yield:</dt>
+<dd>
+names
+</dd>
+</dl>
+<dl>
+<dt>Yield Type:</dt>
+<dd>
+str
+</dd>
+</dl>
 <a NAME="BugBearVisitor.__isIdentifier" ID="BugBearVisitor.__isIdentifier"></a>
 <h4>BugBearVisitor.__isIdentifier</h4>
 <b>__isIdentifier</b>(<i>arg</i>)
@@ -1164,6 +1250,20 @@
 reference to the node to be processed
 </dd>
 </dl>
+<a NAME="BugBearVisitor.visit_ImportFrom" ID="BugBearVisitor.visit_ImportFrom"></a>
+<h4>BugBearVisitor.visit_ImportFrom</h4>
+<b>visit_ImportFrom</b>(<i>node</i>)
+
+<p>
+        Public method to check from imports.
+</p>
+<dl>
+
+<dt><i>node</i> (ast.Import)</dt>
+<dd>
+reference to the node to be processed
+</dd>
+</dl>
 <a NAME="BugBearVisitor.visit_JoinedStr" ID="BugBearVisitor.visit_JoinedStr"></a>
 <h4>BugBearVisitor.visit_JoinedStr</h4>
 <b>visit_JoinedStr</b>(<i>node</i>)

eric ide

mercurial