57 <tr> |
57 <tr> |
58 <td><a href="#AnnotationsFutureVisitor.__init__">AnnotationsFutureVisitor</a></td> |
58 <td><a href="#AnnotationsFutureVisitor.__init__">AnnotationsFutureVisitor</a></td> |
59 <td>Constructor</td> |
59 <td>Constructor</td> |
60 </tr> |
60 </tr> |
61 <tr> |
61 <tr> |
|
62 <td><a href="#AnnotationsFutureVisitor.__processAnnotation">__processAnnotation</a></td> |
|
63 <td>Private method to process the given annotations.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#AnnotationsFutureVisitor.getSimplifiedTypes">getSimplifiedTypes</a></td> |
|
67 <td>Public method Public method to get the list of detected simplified types.</td> |
|
68 </tr> |
|
69 <tr> |
62 <td><a href="#AnnotationsFutureVisitor.getTypingImports">getTypingImports</a></td> |
70 <td><a href="#AnnotationsFutureVisitor.getTypingImports">getTypingImports</a></td> |
63 <td>Public method to get the list of typing imports.</td> |
71 <td>Public method to get the list of typing imports.</td> |
64 </tr> |
72 </tr> |
65 <tr> |
73 <tr> |
|
74 <td><a href="#AnnotationsFutureVisitor.hasSimplifiedTypes">hasSimplifiedTypes</a></td> |
|
75 <td>Public method to check, if the analyzed code includes annotations with simplified types.</td> |
|
76 </tr> |
|
77 <tr> |
66 <td><a href="#AnnotationsFutureVisitor.hasTypingImports">hasTypingImports</a></td> |
78 <td><a href="#AnnotationsFutureVisitor.hasTypingImports">hasTypingImports</a></td> |
67 <td>Public method to check, if the analyzed code includes typing imports.</td> |
79 <td>Public method to check, if the analyzed code includes typing imports.</td> |
68 </tr> |
80 </tr> |
69 <tr> |
81 <tr> |
70 <td><a href="#AnnotationsFutureVisitor.importsFutureAnnotations">importsFutureAnnotations</a></td> |
82 <td><a href="#AnnotationsFutureVisitor.importsFutureAnnotations">importsFutureAnnotations</a></td> |
71 <td>Public method to check, if the analyzed code uses future annotation.</td> |
83 <td>Public method to check, if the analyzed code uses future annotation.</td> |
72 </tr> |
84 </tr> |
73 <tr> |
85 <tr> |
|
86 <td><a href="#AnnotationsFutureVisitor.visit_AnnAssign">visit_AnnAssign</a></td> |
|
87 <td>Public method to check type annotations.</td> |
|
88 </tr> |
|
89 <tr> |
74 <td><a href="#AnnotationsFutureVisitor.visit_Attribute">visit_Attribute</a></td> |
90 <td><a href="#AnnotationsFutureVisitor.visit_Attribute">visit_Attribute</a></td> |
75 <td>Public method to record simplifiable names.</td> |
91 <td>Public method to record simplifiable names.</td> |
76 </tr> |
92 </tr> |
77 <tr> |
93 <tr> |
78 <td><a href="#AnnotationsFutureVisitor.visit_Import">visit_Import</a></td> |
94 <td><a href="#AnnotationsFutureVisitor.visit_Import">visit_Import</a></td> |
79 <td>Public method to check imports for typing related stuff.</td> |
95 <td>Public method to check imports for typing related stuff.</td> |
80 </tr> |
96 </tr> |
81 <tr> |
97 <tr> |
82 <td><a href="#AnnotationsFutureVisitor.visit_ImportFrom">visit_ImportFrom</a></td> |
98 <td><a href="#AnnotationsFutureVisitor.visit_ImportFrom">visit_ImportFrom</a></td> |
83 <td>Public method to detect the 'from __future__ import annotations' import if present.</td> |
99 <td>Public method to detect the 'from __future__ import annotations' import if present.</td> |
|
100 </tr> |
|
101 <tr> |
|
102 <td><a href="#AnnotationsFutureVisitor.visit_arg">visit_arg</a></td> |
|
103 <td>Public method to check argument annotations.</td> |
84 </tr> |
104 </tr> |
85 </table> |
105 </table> |
86 <h3>Static Methods</h3> |
106 <h3>Static Methods</h3> |
87 |
107 |
88 <table> |
108 <table> |
94 <b>AnnotationsFutureVisitor</b>(<i></i>) |
114 <b>AnnotationsFutureVisitor</b>(<i></i>) |
95 |
115 |
96 <p> |
116 <p> |
97 Constructor |
117 Constructor |
98 </p> |
118 </p> |
|
119 <a NAME="AnnotationsFutureVisitor.__processAnnotation" ID="AnnotationsFutureVisitor.__processAnnotation"></a> |
|
120 <h4>AnnotationsFutureVisitor.__processAnnotation</h4> |
|
121 <b>__processAnnotation</b>(<i>node</i>) |
|
122 |
|
123 <p> |
|
124 Private method to process the given annotations. |
|
125 </p> |
|
126 <dl> |
|
127 |
|
128 <dt><i>node</i> (ast.expr)</dt> |
|
129 <dd> |
|
130 reference to the AST node containing the annotations |
|
131 </dd> |
|
132 </dl> |
|
133 <a NAME="AnnotationsFutureVisitor.getSimplifiedTypes" ID="AnnotationsFutureVisitor.getSimplifiedTypes"></a> |
|
134 <h4>AnnotationsFutureVisitor.getSimplifiedTypes</h4> |
|
135 <b>getSimplifiedTypes</b>(<i></i>) |
|
136 |
|
137 <p> |
|
138 Public method Public method to get the list of detected simplified types. |
|
139 </p> |
|
140 <dl> |
|
141 <dt>Return:</dt> |
|
142 <dd> |
|
143 list of simplified types |
|
144 </dd> |
|
145 </dl> |
|
146 <dl> |
|
147 <dt>Return Type:</dt> |
|
148 <dd> |
|
149 list of str |
|
150 </dd> |
|
151 </dl> |
99 <a NAME="AnnotationsFutureVisitor.getTypingImports" ID="AnnotationsFutureVisitor.getTypingImports"></a> |
152 <a NAME="AnnotationsFutureVisitor.getTypingImports" ID="AnnotationsFutureVisitor.getTypingImports"></a> |
100 <h4>AnnotationsFutureVisitor.getTypingImports</h4> |
153 <h4>AnnotationsFutureVisitor.getTypingImports</h4> |
101 <b>getTypingImports</b>(<i></i>) |
154 <b>getTypingImports</b>(<i></i>) |
102 |
155 |
103 <p> |
156 <p> |
113 <dt>Return Type:</dt> |
166 <dt>Return Type:</dt> |
114 <dd> |
167 <dd> |
115 list of str |
168 list of str |
116 </dd> |
169 </dd> |
117 </dl> |
170 </dl> |
|
171 <a NAME="AnnotationsFutureVisitor.hasSimplifiedTypes" ID="AnnotationsFutureVisitor.hasSimplifiedTypes"></a> |
|
172 <h4>AnnotationsFutureVisitor.hasSimplifiedTypes</h4> |
|
173 <b>hasSimplifiedTypes</b>(<i></i>) |
|
174 |
|
175 <p> |
|
176 Public method to check, if the analyzed code includes annotations with |
|
177 simplified types. |
|
178 </p> |
|
179 <dl> |
|
180 <dt>Return:</dt> |
|
181 <dd> |
|
182 flag indicating the presence of simplified types |
|
183 </dd> |
|
184 </dl> |
|
185 <dl> |
|
186 <dt>Return Type:</dt> |
|
187 <dd> |
|
188 bool |
|
189 </dd> |
|
190 </dl> |
118 <a NAME="AnnotationsFutureVisitor.hasTypingImports" ID="AnnotationsFutureVisitor.hasTypingImports"></a> |
191 <a NAME="AnnotationsFutureVisitor.hasTypingImports" ID="AnnotationsFutureVisitor.hasTypingImports"></a> |
119 <h4>AnnotationsFutureVisitor.hasTypingImports</h4> |
192 <h4>AnnotationsFutureVisitor.hasTypingImports</h4> |
120 <b>hasTypingImports</b>(<i></i>) |
193 <b>hasTypingImports</b>(<i></i>) |
121 |
194 |
122 <p> |
195 <p> |
149 </dl> |
222 </dl> |
150 <dl> |
223 <dl> |
151 <dt>Return Type:</dt> |
224 <dt>Return Type:</dt> |
152 <dd> |
225 <dd> |
153 bool |
226 bool |
|
227 </dd> |
|
228 </dl> |
|
229 <a NAME="AnnotationsFutureVisitor.visit_AnnAssign" ID="AnnotationsFutureVisitor.visit_AnnAssign"></a> |
|
230 <h4>AnnotationsFutureVisitor.visit_AnnAssign</h4> |
|
231 <b>visit_AnnAssign</b>(<i>node</i>) |
|
232 |
|
233 <p> |
|
234 Public method to check type annotations. |
|
235 </p> |
|
236 <dl> |
|
237 |
|
238 <dt><i>node</i> (ast.AnnAssign)</dt> |
|
239 <dd> |
|
240 reference to the AST Assign node |
154 </dd> |
241 </dd> |
155 </dl> |
242 </dl> |
156 <a NAME="AnnotationsFutureVisitor.visit_Attribute" ID="AnnotationsFutureVisitor.visit_Attribute"></a> |
243 <a NAME="AnnotationsFutureVisitor.visit_Attribute" ID="AnnotationsFutureVisitor.visit_Attribute"></a> |
157 <h4>AnnotationsFutureVisitor.visit_Attribute</h4> |
244 <h4>AnnotationsFutureVisitor.visit_Attribute</h4> |
158 <b>visit_Attribute</b>(<i>node</i>) |
245 <b>visit_Attribute</b>(<i>node</i>) |
211 <dt><i>node</i> (ast.ImportFrom)</dt> |
298 <dt><i>node</i> (ast.ImportFrom)</dt> |
212 <dd> |
299 <dd> |
213 reference to the AST ImportFrom node |
300 reference to the AST ImportFrom node |
214 </dd> |
301 </dd> |
215 </dl> |
302 </dl> |
|
303 <a NAME="AnnotationsFutureVisitor.visit_arg" ID="AnnotationsFutureVisitor.visit_arg"></a> |
|
304 <h4>AnnotationsFutureVisitor.visit_arg</h4> |
|
305 <b>visit_arg</b>(<i>node: ast.arg</i>) |
|
306 |
|
307 <p> |
|
308 Public method to check argument annotations. |
|
309 </p> |
|
310 <dl> |
|
311 |
|
312 <dt><i>node</i> (ast.arg)</dt> |
|
313 <dd> |
|
314 reference to the AST argument node |
|
315 </dd> |
|
316 </dl> |
216 <div align="right"><a href="#top">Up</a></div> |
317 <div align="right"><a href="#top">Up</a></div> |
217 <hr /> |
318 <hr /> |
218 </body></html> |
319 </body></html> |