module documentation

This module is responsible for parsing a stub AST into a dictionary of names.

Exception InvalidStub Undocumented
Function get_dunder_all_from_info Undocumented
Function get_import_star_names Undocumented
Variable log Undocumented
Class _LiteralEvalVisitor Undocumented
Class _NameExtractor Extract names from a stub module.
Exception _AssertFailed Raised when a top-level assert in a stub fails.
Function _get_dunder_all_from_ast Undocumented
Function _name_is_exported Undocumented
Function _warn Undocumented
Constant _CMP_OP_TO_FUNCTION Undocumented
def get_dunder_all_from_info(info: NameInfo) -> Optional[List[str]]: (source)

Undocumented

def get_import_star_names(module_name: str, *, search_context: SearchContext) -> Optional[List[str]]: (source)

Undocumented

Undocumented

def _get_dunder_all_from_ast(node: ast.AST) -> Optional[List[str]]: (source)

Undocumented

def _name_is_exported(name: str) -> bool: (source)

Undocumented

def _warn(message: str, ctx: SearchContext): (source)

Undocumented

_CMP_OP_TO_FUNCTION: Dict[Type[ast.AST], Callable[[Any, Any], bool]] = (source)

Undocumented

Value
{ast.Eq: (lambda x, y: x == y),
 ast.NotEq: (lambda x, y: x != y),
 ast.Lt: (lambda x, y: x < y),
 ast.LtE: (lambda x, y: x <= y),
 ast.Gt: (lambda x, y: x > y),
 ast.GtE: (lambda x, y: x >= y),
 ast.Is: (lambda x, y: x is y),
...