diff -r ca636e8d80fd -r f1427d95cfde src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Annotations.AnnotationsFutureVisitor.html --- a/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Annotations.AnnotationsFutureVisitor.html Fri May 19 16:01:53 2023 +0200 +++ b/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Annotations.AnnotationsFutureVisitor.html Fri May 19 18:08:45 2023 +0200 @@ -43,7 +43,7 @@ <h3>Class Attributes</h3> <table> -<tr><td>SimplifyableTypes</td></tr> +<tr><td>SimplifiedTypes</td></tr><tr><td>SimplifyableTypes</td></tr> </table> <h3>Class Methods</h3> @@ -59,10 +59,22 @@ <td>Constructor</td> </tr> <tr> +<td><a href="#AnnotationsFutureVisitor.__processAnnotation">__processAnnotation</a></td> +<td>Private method to process the given annotations.</td> +</tr> +<tr> +<td><a href="#AnnotationsFutureVisitor.getSimplifiedTypes">getSimplifiedTypes</a></td> +<td>Public method Public method to get the list of detected simplified types.</td> +</tr> +<tr> <td><a href="#AnnotationsFutureVisitor.getTypingImports">getTypingImports</a></td> <td>Public method to get the list of typing imports.</td> </tr> <tr> +<td><a href="#AnnotationsFutureVisitor.hasSimplifiedTypes">hasSimplifiedTypes</a></td> +<td>Public method to check, if the analyzed code includes annotations with simplified types.</td> +</tr> +<tr> <td><a href="#AnnotationsFutureVisitor.hasTypingImports">hasTypingImports</a></td> <td>Public method to check, if the analyzed code includes typing imports.</td> </tr> @@ -71,6 +83,10 @@ <td>Public method to check, if the analyzed code uses future annotation.</td> </tr> <tr> +<td><a href="#AnnotationsFutureVisitor.visit_AnnAssign">visit_AnnAssign</a></td> +<td>Public method to check type annotations.</td> +</tr> +<tr> <td><a href="#AnnotationsFutureVisitor.visit_Attribute">visit_Attribute</a></td> <td>Public method to record simplifiable names.</td> </tr> @@ -82,6 +98,10 @@ <td><a href="#AnnotationsFutureVisitor.visit_ImportFrom">visit_ImportFrom</a></td> <td>Public method to detect the 'from __future__ import annotations' import if present.</td> </tr> +<tr> +<td><a href="#AnnotationsFutureVisitor.visit_arg">visit_arg</a></td> +<td>Public method to check argument annotations.</td> +</tr> </table> <h3>Static Methods</h3> @@ -96,6 +116,39 @@ <p> Constructor </p> +<a NAME="AnnotationsFutureVisitor.__processAnnotation" ID="AnnotationsFutureVisitor.__processAnnotation"></a> +<h4>AnnotationsFutureVisitor.__processAnnotation</h4> +<b>__processAnnotation</b>(<i>node</i>) + +<p> + Private method to process the given annotations. +</p> +<dl> + +<dt><i>node</i> (ast.expr)</dt> +<dd> +reference to the AST node containing the annotations +</dd> +</dl> +<a NAME="AnnotationsFutureVisitor.getSimplifiedTypes" ID="AnnotationsFutureVisitor.getSimplifiedTypes"></a> +<h4>AnnotationsFutureVisitor.getSimplifiedTypes</h4> +<b>getSimplifiedTypes</b>(<i></i>) + +<p> + Public method Public method to get the list of detected simplified types. +</p> +<dl> +<dt>Return:</dt> +<dd> +list of simplified types +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +list of str +</dd> +</dl> <a NAME="AnnotationsFutureVisitor.getTypingImports" ID="AnnotationsFutureVisitor.getTypingImports"></a> <h4>AnnotationsFutureVisitor.getTypingImports</h4> <b>getTypingImports</b>(<i></i>) @@ -115,6 +168,26 @@ list of str </dd> </dl> +<a NAME="AnnotationsFutureVisitor.hasSimplifiedTypes" ID="AnnotationsFutureVisitor.hasSimplifiedTypes"></a> +<h4>AnnotationsFutureVisitor.hasSimplifiedTypes</h4> +<b>hasSimplifiedTypes</b>(<i></i>) + +<p> + Public method to check, if the analyzed code includes annotations with + simplified types. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating the presence of simplified types +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> <a NAME="AnnotationsFutureVisitor.hasTypingImports" ID="AnnotationsFutureVisitor.hasTypingImports"></a> <h4>AnnotationsFutureVisitor.hasTypingImports</h4> <b>hasTypingImports</b>(<i></i>) @@ -153,6 +226,20 @@ bool </dd> </dl> +<a NAME="AnnotationsFutureVisitor.visit_AnnAssign" ID="AnnotationsFutureVisitor.visit_AnnAssign"></a> +<h4>AnnotationsFutureVisitor.visit_AnnAssign</h4> +<b>visit_AnnAssign</b>(<i>node</i>) + +<p> + Public method to check type annotations. +</p> +<dl> + +<dt><i>node</i> (ast.AnnAssign)</dt> +<dd> +reference to the AST Assign node +</dd> +</dl> <a NAME="AnnotationsFutureVisitor.visit_Attribute" ID="AnnotationsFutureVisitor.visit_Attribute"></a> <h4>AnnotationsFutureVisitor.visit_Attribute</h4> <b>visit_Attribute</b>(<i>node</i>) @@ -213,6 +300,20 @@ reference to the AST ImportFrom node </dd> </dl> +<a NAME="AnnotationsFutureVisitor.visit_arg" ID="AnnotationsFutureVisitor.visit_arg"></a> +<h4>AnnotationsFutureVisitor.visit_arg</h4> +<b>visit_arg</b>(<i>node: ast.arg</i>) + +<p> + Public method to check argument annotations. +</p> +<dl> + +<dt><i>node</i> (ast.arg)</dt> +<dd> +reference to the AST argument node +</dd> +</dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html> \ No newline at end of file