--- a/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Annotations.AnnotationsFunctionVisitor.html Tue Aug 23 19:33:07 2022 +0200 +++ b/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Annotations.AnnotationsFunctionVisitor.html Tue Aug 23 19:35:42 2022 +0200 @@ -78,7 +78,11 @@ <h3>Static Methods</h3> <table> -<tr><td>None</td></tr> + +<tr> +<td><a href="#Argument._isAnnotatedAny">_isAnnotatedAny</a></td> +<td>Static method to check if the provided expression node is annotated with 'typing.Any'.</td> +</tr> </table> <a NAME="Argument.fromNode" ID="Argument.fromNode"></a> @@ -113,7 +117,7 @@ </dl> <a NAME="Argument.__init__" ID="Argument.__init__"></a> <h4>Argument (Constructor)</h4> -<b>Argument</b>(<i>argname, lineno, col_offset, annotationType, hasTypeAnnotation=False, has3107Annotation=False, hasTypeComment=False, </i>) +<b>Argument</b>(<i>argname, lineno, col_offset, annotationType, hasTypeAnnotation=False, has3107Annotation=False, hasTypeComment=False, isDynamicallyTyped=False, </i>) <p> Constructor @@ -151,6 +155,48 @@ flag indicating the presence of a type comment (defaults to False) </dd> +<dt><i>isDynamicallyTyped</i> (bool (optional))</dt> +<dd> +flag indicating dynamic typing (defaults to False) +</dd> +</dl> +<a NAME="Argument._isAnnotatedAny" ID="Argument._isAnnotatedAny"></a> +<h4>Argument._isAnnotatedAny (static)</h4> +<b>_isAnnotatedAny</b>(<i></i>) + +<p> + Static method to check if the provided expression node is annotated with + 'typing.Any'. +</p> +<p> + Support is provided for the following patterns: + * 'from typing import Any; foo: Any' + * 'import typing; foo: typing.Any' + * 'import typing as <alias>; foo: <alias>.Any' +</p> +<p> + Type comments are also supported. Inline type comments are assumed to be + passed here as 'str', and function-level type comments are assumed to be + passed as 'ast.expr'. +</p> +<dl> + +<dt><i>argExpr</i> (ast.expr or str)</dt> +<dd> +DESCRIPTION +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +flag indicating an annotation with 'typing.Any' +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr />