223 <tr> |
223 <tr> |
224 <td><a href="#SimplifyNodeVisitor.__check402">__check402</a></td> |
224 <td><a href="#SimplifyNodeVisitor.__check402">__check402</a></td> |
225 <td>Private method to check for bare numeric function arguments.</td> |
225 <td>Private method to check for bare numeric function arguments.</td> |
226 </tr> |
226 </tr> |
227 <tr> |
227 <tr> |
|
228 <td><a href="#SimplifyNodeVisitor.__check411">__check411</a></td> |
|
229 <td>Private method to check for nested f-strings.</td> |
|
230 </tr> |
|
231 <tr> |
228 <td><a href="#SimplifyNodeVisitor.__check901">__check901</a></td> |
232 <td><a href="#SimplifyNodeVisitor.__check901">__check901</a></td> |
229 <td>Private method to check for unnecessary bool conversion.</td> |
233 <td>Private method to check for unnecessary bool conversion.</td> |
230 </tr> |
234 </tr> |
231 <tr> |
235 <tr> |
232 <td><a href="#SimplifyNodeVisitor.__check904">__check904</a></td> |
236 <td><a href="#SimplifyNodeVisitor.__check904">__check904</a></td> |
329 <td>Public method to process an If node.</td> |
333 <td>Public method to process an If node.</td> |
330 </tr> |
334 </tr> |
331 <tr> |
335 <tr> |
332 <td><a href="#SimplifyNodeVisitor.visit_IfExp">visit_IfExp</a></td> |
336 <td><a href="#SimplifyNodeVisitor.visit_IfExp">visit_IfExp</a></td> |
333 <td>Public method to process an IfExp node.</td> |
337 <td>Public method to process an IfExp node.</td> |
|
338 </tr> |
|
339 <tr> |
|
340 <td><a href="#SimplifyNodeVisitor.visit_JoinedStr">visit_JoinedStr</a></td> |
|
341 <td>Public method to check a joined string node.</td> |
334 </tr> |
342 </tr> |
335 <tr> |
343 <tr> |
336 <td><a href="#SimplifyNodeVisitor.visit_Subscript">visit_Subscript</a></td> |
344 <td><a href="#SimplifyNodeVisitor.visit_Subscript">visit_Subscript</a></td> |
337 <td>Public method to process a Subscript node.</td> |
345 <td>Public method to process a Subscript node.</td> |
338 </tr> |
346 </tr> |
989 <dt><i>node</i> (ast.Call)</dt> |
997 <dt><i>node</i> (ast.Call)</dt> |
990 <dd> |
998 <dd> |
991 reference to the AST node to be checked |
999 reference to the AST node to be checked |
992 </dd> |
1000 </dd> |
993 </dl> |
1001 </dl> |
|
1002 <a NAME="SimplifyNodeVisitor.__check411" ID="SimplifyNodeVisitor.__check411"></a> |
|
1003 <h4>SimplifyNodeVisitor.__check411</h4> |
|
1004 <b>__check411</b>(<i>node</i>) |
|
1005 <p> |
|
1006 Private method to check for nested f-strings. |
|
1007 </p> |
|
1008 <p> |
|
1009 Note: This method is adapted from flake8-nested-fstrings v1.1.0. |
|
1010 </p> |
|
1011 |
|
1012 <dl> |
|
1013 |
|
1014 <dt><i>node</i> (ast.JoinedStr or ast.expr)</dt> |
|
1015 <dd> |
|
1016 reference to the AST node to be checked |
|
1017 </dd> |
|
1018 </dl> |
994 <a NAME="SimplifyNodeVisitor.__check901" ID="SimplifyNodeVisitor.__check901"></a> |
1019 <a NAME="SimplifyNodeVisitor.__check901" ID="SimplifyNodeVisitor.__check901"></a> |
995 <h4>SimplifyNodeVisitor.__check901</h4> |
1020 <h4>SimplifyNodeVisitor.__check901</h4> |
996 <b>__check901</b>(<i>node</i>) |
1021 <b>__check901</b>(<i>node</i>) |
997 <p> |
1022 <p> |
998 Private method to check for unnecessary bool conversion. |
1023 Private method to check for unnecessary bool conversion. |
1483 <dt><i>node</i> (ast.IfExp)</dt> |
1508 <dt><i>node</i> (ast.IfExp)</dt> |
1484 <dd> |
1509 <dd> |
1485 reference to the IfExp node |
1510 reference to the IfExp node |
1486 </dd> |
1511 </dd> |
1487 </dl> |
1512 </dl> |
|
1513 <a NAME="SimplifyNodeVisitor.visit_JoinedStr" ID="SimplifyNodeVisitor.visit_JoinedStr"></a> |
|
1514 <h4>SimplifyNodeVisitor.visit_JoinedStr</h4> |
|
1515 <b>visit_JoinedStr</b>(<i>node</i>) |
|
1516 <p> |
|
1517 Public method to check a joined string node. |
|
1518 </p> |
|
1519 |
|
1520 <dl> |
|
1521 |
|
1522 <dt><i>node</i> (ast.JoinedStr)</dt> |
|
1523 <dd> |
|
1524 reference to the node to be processed |
|
1525 </dd> |
|
1526 </dl> |
1488 <a NAME="SimplifyNodeVisitor.visit_Subscript" ID="SimplifyNodeVisitor.visit_Subscript"></a> |
1527 <a NAME="SimplifyNodeVisitor.visit_Subscript" ID="SimplifyNodeVisitor.visit_Subscript"></a> |
1489 <h4>SimplifyNodeVisitor.visit_Subscript</h4> |
1528 <h4>SimplifyNodeVisitor.visit_Subscript</h4> |
1490 <b>visit_Subscript</b>(<i>node</i>) |
1529 <b>visit_Subscript</b>(<i>node</i>) |
1491 <p> |
1530 <p> |
1492 Public method to process a Subscript node. |
1531 Public method to process a Subscript node. |