scan.find_importers( root, unit, public=(),*, source_dir='src', scan_dirs=('src', 'tests', 'scripts'), doc_globs=(),)
Every file below root that depends on the module unit.
Python files under scan_dirs count when an import statement names the module, or imports one of its public names through a package that re-exports it (from samplepkg.core import add). Documents matched by doc_globs count when their text names the module, imports its leaf from the parent package or imports a re-exported public name. Attribute access through an imported package (samplepkg.core.add) is not detected.