Class swarmauri_evaluator_anyusage.AnyTypeUsageEvaluator.AnyTypeVisitor
AnyTypeVisitor()
              Bases: NodeVisitor
AST visitor that finds usages of the Any type in Python code.
Source code in swarmauri_evaluator_anyusage/AnyTypeUsageEvaluator.py
                    | 178 179 180 |  | 
instance-attribute
  
any_occurrences = []
instance-attribute
  
importing_any = False
visit_ImportFrom(node)
Visit import from statements to detect 'from typing import Any'.
Source code in swarmauri_evaluator_anyusage/AnyTypeUsageEvaluator.py
              | 182 183 184 185 186 187 188 189 190 191 |  | 
visit_Name(node)
Visit name nodes to find Any identifiers.
Source code in swarmauri_evaluator_anyusage/AnyTypeUsageEvaluator.py
              | 193 194 195 196 197 198 199 |  | 
visit_AnnAssign(node)
Visit annotated assignments to find Any in type annotations.
Source code in swarmauri_evaluator_anyusage/AnyTypeUsageEvaluator.py
              | 201 202 203 204 205 206 207 |  | 
visit_FunctionDef(node)
Visit function definitions to find Any in return annotations.
Source code in swarmauri_evaluator_anyusage/AnyTypeUsageEvaluator.py
              | 209 210 211 212 213 214 215 216 217 218 |  | 
visit_arg(node)
Visit function arguments to find Any in parameter annotations.
Source code in swarmauri_evaluator_anyusage/AnyTypeUsageEvaluator.py
              | 220 221 222 223 224 225 226 227 228 229 |  | 
visit_Subscript(node)
Visit subscripts to find Any in complex type annotations like List[Any].
Source code in swarmauri_evaluator_anyusage/AnyTypeUsageEvaluator.py
              | 231 232 233 234 235 236 237 238 239 240 241 |  |