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

branch
eric7
changeset 10358
957c9de01d42
parent 10189
1ab3a4674cb4
child 10368
8765229e7cc8
equal deleted inserted replaced
10357:ac30c311d35f 10358:957c9de01d42
173 <tr> 173 <tr>
174 <td><a href="#BugBearVisitor.__checkForM534">__checkForM534</a></td> 174 <td><a href="#BugBearVisitor.__checkForM534">__checkForM534</a></td>
175 <td>Private method to check that re.sub/subn/split arguments flags/count/maxsplit are passed as keyword arguments.</td> 175 <td>Private method to check that re.sub/subn/split arguments flags/count/maxsplit are passed as keyword arguments.</td>
176 </tr> 176 </tr>
177 <tr> 177 <tr>
178 <td><a href="#BugBearVisitor.__checkForM535">__checkForM535</a></td>
179 <td>Private method to check that a static key isn't used in a dict comprehension.</td>
180 </tr>
181 <tr>
178 <td><a href="#BugBearVisitor.__checkRedundantExcepthandlers">__checkRedundantExcepthandlers</a></td> 182 <td><a href="#BugBearVisitor.__checkRedundantExcepthandlers">__checkRedundantExcepthandlers</a></td>
179 <td>Private method to check for redundant exception types in an exception handler.</td> 183 <td>Private method to check for redundant exception types in an exception handler.</td>
180 </tr> 184 </tr>
181 <tr> 185 <tr>
182 <td><a href="#BugBearVisitor.__childrenInScope">__childrenInScope</a></td> 186 <td><a href="#BugBearVisitor.__childrenInScope">__childrenInScope</a></td>
193 <tr> 197 <tr>
194 <td><a href="#BugBearVisitor.__getAssignedNames">__getAssignedNames</a></td> 198 <td><a href="#BugBearVisitor.__getAssignedNames">__getAssignedNames</a></td>
195 <td>Private method to get the names of a for loop.</td> 199 <td>Private method to get the names of a for loop.</td>
196 </tr> 200 </tr>
197 <tr> 201 <tr>
202 <td><a href="#BugBearVisitor.__getDictCompLoopVarNames">__getDictCompLoopVarNames</a></td>
203 <td>Private method to get the names of comprehension loop variables.</td>
204 </tr>
205 <tr>
206 <td><a href="#BugBearVisitor.__getNamesFromTuple">__getNamesFromTuple</a></td>
207 <td>Private method to get the names from an ast.Tuple node.</td>
208 </tr>
209 <tr>
198 <td><a href="#BugBearVisitor.__isIdentifier">__isIdentifier</a></td> 210 <td><a href="#BugBearVisitor.__isIdentifier">__isIdentifier</a></td>
199 <td>Private method to check if arg is a valid identifier.</td> 211 <td>Private method to check if arg is a valid identifier.</td>
200 </tr> 212 </tr>
201 <tr> 213 <tr>
202 <td><a href="#BugBearVisitor.__namesFromAssignments">__namesFromAssignments</a></td> 214 <td><a href="#BugBearVisitor.__namesFromAssignments">__namesFromAssignments</a></td>
299 <td>Public method to handle generator expressions.</td> 311 <td>Public method to handle generator expressions.</td>
300 </tr> 312 </tr>
301 <tr> 313 <tr>
302 <td><a href="#BugBearVisitor.visit_Import">visit_Import</a></td> 314 <td><a href="#BugBearVisitor.visit_Import">visit_Import</a></td>
303 <td>Public method to check imports.</td> 315 <td>Public method to check imports.</td>
316 </tr>
317 <tr>
318 <td><a href="#BugBearVisitor.visit_ImportFrom">visit_ImportFrom</a></td>
319 <td>Public method to check from imports.</td>
304 </tr> 320 </tr>
305 <tr> 321 <tr>
306 <td><a href="#BugBearVisitor.visit_JoinedStr">visit_JoinedStr</a></td> 322 <td><a href="#BugBearVisitor.visit_JoinedStr">visit_JoinedStr</a></td>
307 <td>Public method to handle f-string arguments.</td> 323 <td>Public method to handle f-string arguments.</td>
308 </tr> 324 </tr>
644 <dt><i>node</i> (ast.Call)</dt> 660 <dt><i>node</i> (ast.Call)</dt>
645 <dd> 661 <dd>
646 reference to the node to be processed 662 reference to the node to be processed
647 </dd> 663 </dd>
648 </dl> 664 </dl>
665 <a NAME="BugBearVisitor.__checkForM535" ID="BugBearVisitor.__checkForM535"></a>
666 <h4>BugBearVisitor.__checkForM535</h4>
667 <b>__checkForM535</b>(<i>node: ast.DictComp</i>)
668
669 <p>
670 Private method to check that a static key isn't used in a dict comprehension.
671 </p>
672 <p>
673 Record a warning if a likely unchanging key is used - either a constant,
674 or a variable that isn't coming from the generator expression.
675 </p>
676 <dl>
677
678 <dt><i>node</i> (ast.DictComp)</dt>
679 <dd>
680 reference to the node to be processed
681 </dd>
682 </dl>
649 <a NAME="BugBearVisitor.__checkRedundantExcepthandlers" ID="BugBearVisitor.__checkRedundantExcepthandlers"></a> 683 <a NAME="BugBearVisitor.__checkRedundantExcepthandlers" ID="BugBearVisitor.__checkRedundantExcepthandlers"></a>
650 <h4>BugBearVisitor.__checkRedundantExcepthandlers</h4> 684 <h4>BugBearVisitor.__checkRedundantExcepthandlers</h4>
651 <b>__checkRedundantExcepthandlers</b>(<i>names, node</i>) 685 <b>__checkRedundantExcepthandlers</b>(<i>names, node</i>)
652 686
653 <p> 687 <p>
778 <dt>Yield Type:</dt> 812 <dt>Yield Type:</dt>
779 <dd> 813 <dd>
780 TYPE 814 TYPE
781 </dd> 815 </dd>
782 </dl> 816 </dl>
817 <a NAME="BugBearVisitor.__getDictCompLoopVarNames" ID="BugBearVisitor.__getDictCompLoopVarNames"></a>
818 <h4>BugBearVisitor.__getDictCompLoopVarNames</h4>
819 <b>__getDictCompLoopVarNames</b>(<i>node</i>)
820
821 <p>
822 Private method to get the names of comprehension loop variables.
823 </p>
824 <dl>
825
826 <dt><i>node</i> (ast.DictComp)</dt>
827 <dd>
828 ast node to be processed
829 </dd>
830 </dl>
831 <dl>
832 <dt>Yield:</dt>
833 <dd>
834 loop variable names
835 </dd>
836 </dl>
837 <dl>
838 <dt>Yield Type:</dt>
839 <dd>
840 str
841 </dd>
842 </dl>
843 <a NAME="BugBearVisitor.__getNamesFromTuple" ID="BugBearVisitor.__getNamesFromTuple"></a>
844 <h4>BugBearVisitor.__getNamesFromTuple</h4>
845 <b>__getNamesFromTuple</b>(<i>node</i>)
846
847 <p>
848 Private method to get the names from an ast.Tuple node.
849 </p>
850 <dl>
851
852 <dt><i>node</i> (ast.Tuple)</dt>
853 <dd>
854 ast node to be processed
855 </dd>
856 </dl>
857 <dl>
858 <dt>Yield:</dt>
859 <dd>
860 names
861 </dd>
862 </dl>
863 <dl>
864 <dt>Yield Type:</dt>
865 <dd>
866 str
867 </dd>
868 </dl>
783 <a NAME="BugBearVisitor.__isIdentifier" ID="BugBearVisitor.__isIdentifier"></a> 869 <a NAME="BugBearVisitor.__isIdentifier" ID="BugBearVisitor.__isIdentifier"></a>
784 <h4>BugBearVisitor.__isIdentifier</h4> 870 <h4>BugBearVisitor.__isIdentifier</h4>
785 <b>__isIdentifier</b>(<i>arg</i>) 871 <b>__isIdentifier</b>(<i>arg</i>)
786 872
787 <p> 873 <p>
1154 <h4>BugBearVisitor.visit_Import</h4> 1240 <h4>BugBearVisitor.visit_Import</h4>
1155 <b>visit_Import</b>(<i>node</i>) 1241 <b>visit_Import</b>(<i>node</i>)
1156 1242
1157 <p> 1243 <p>
1158 Public method to check imports. 1244 Public method to check imports.
1245 </p>
1246 <dl>
1247
1248 <dt><i>node</i> (ast.Import)</dt>
1249 <dd>
1250 reference to the node to be processed
1251 </dd>
1252 </dl>
1253 <a NAME="BugBearVisitor.visit_ImportFrom" ID="BugBearVisitor.visit_ImportFrom"></a>
1254 <h4>BugBearVisitor.visit_ImportFrom</h4>
1255 <b>visit_ImportFrom</b>(<i>node</i>)
1256
1257 <p>
1258 Public method to check from imports.
1159 </p> 1259 </p>
1160 <dl> 1260 <dl>
1161 1261
1162 <dt><i>node</i> (ast.Import)</dt> 1262 <dt><i>node</i> (ast.Import)</dt>
1163 <dd> 1263 <dd>

eric ide

mercurial