module documentation

Technically, this is part of the analyzer.

Function compute_wildcards Maps ast Modules to the collection of names explicitely given in __all__ variable. If __all__ is not defined at the module scope, the result is None.
Class _ComputeWildcards No class docstring; 0/2 instance variable, 1/4 method documented
Class _VisitDunderAllAssignment Ensures that dependencies required to calculate __all__ are processed before going forward. Only other __all__ values will be considered as dependencies to calculate __all__, meaning developers should not include arbitrary names in __all__ values.
Class _VisitWildcardImports Undocumented
def compute_wildcards(state: MutableState) -> Mapping[Mod, Collection[str] | None]: (source) ΒΆ

Maps ast Modules to the collection of names explicitely given in __all__ variable. If __all__ is not defined at the module scope, the result is None.

Maps each modules to the list of names imported if one wildcard imports this module.

A bi-product of this analysis maps each wildcard ImportFrom nodes to the collection of names they are actually importing.