Skip to main content

iter_modules_and_files

Iterate through all modules needed to be watched.

def iter_modules_and_files(
modules: iterable,
extra_files: iterable
) - > frozenset

Iterate through all modules needed to be watched.

Parameters

NameTypeDescription
modulesiterableA collection of module objects to be scanned for source file locations, handling special cases like main and zip imports.
extra_filesiterableA collection of additional file paths or strings to be included in the resulting set of watched locations.

Returns

TypeDescription
frozensetA set of absolute, resolved Path objects representing the unique file system locations of the provided modules and extra files.