class documentation

class Module: (source)

View In Hierarchy

Represents a parsed module. Attributes: module_name: The module name, e.g. "numpy.fft.fftpack". filename: The filename of the pytd that describes the module. Needs to be unique. Will be in one of the following formats: - "pytd:{module_name}" for pytd files that ship with pytype. - "pytd:{filename}" for pyi files that ship with typeshed. - "{filename}" for other pyi files. ast: The parsed PyTD. Internal references will be resolved, but NamedType nodes referencing other modules might still be unresolved. pickle: The AST as a pickled string. As long as this field is not None, the ast will be None. has_unresolved_pointers: Whether all ClassType pointers have been filled in metadata: The metadata extracted from the picked file.

Class Method resolved_internal_stub Undocumented
Method __init__ Undocumented
Method is_package Undocumented
Method needs_unpickling Undocumented
Instance Variable ast Undocumented
Instance Variable filename Undocumented
Instance Variable has_unresolved_pointers Undocumented
Instance Variable metadata Undocumented
Instance Variable module_name Undocumented
Instance Variable pickle Undocumented
@classmethod
def resolved_internal_stub(cls, name, mod_ast): (source)

Undocumented

def __init__(self, module_name, filename, ast, metadata=None, pickle=None, has_unresolved_pointers=True): (source)

Undocumented

def is_package(self): (source)

Undocumented

def needs_unpickling(self): (source)

Undocumented

Undocumented

filename = (source)

Undocumented

has_unresolved_pointers = (source)

Undocumented

metadata = (source)

Undocumented

module_name = (source)

Undocumented

Undocumented