class_docstr: Finds relevant Lightning objects in files in the file system.
  
  Attributes
  ----------
  visitor_classes: List[Type]
      List of visitor classes to use when traversing files.
  Parameters
  ----------
  path: str
      Path to file, or directory where to look for files to scan.
  glob_pattern: str
      Glob pattern to use when looking for files in the path,
      applied when path is a directory. Default is "**/*.py".
class_docstr_tok: ["Finds","relevant","Lightning","objects","in","files","in","the","file","system",".","Attributes","--","--","--","--","--","visitor_classes",":","List","[","Type","]","List","of","visitor","classes","to","use","when","traversing","files",".","Parameters","--","--","--","--","--","path",":","str","Path","to","file",",","or","directory","where","to","look","for","files","to","scan",".","glob_pattern",":","str","Glob","pattern","to","use","when","looking","for","files","in","the","path",",","applied","when","path","is","a","directory",".","Default","is","``","*","*","\/","*",".py","''","."]
code: def __init__(self, path: str, glob_pattern: str = "**/*.py"):
      path_ = Path(path)
      if path_.is_dir():
          self.paths = path_.glob(glob_pattern)
      else:
          self.paths = [path_]
  
      self.modules_found: List[Dict[str, Any]] = []
  
imports: import ast
  import inspect
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Type, Union
label_desc: Use image node_id 1 to create a new Scanner object  with example: obj = Scanner(path, glob_pattern)