typedargs/annotate.py
def context_from_module(module):
    """
    Given a module, create a context from all of the top level annotated
    symbols in that module.
    """

    con = find_all(module)

    if hasattr(module, "__doc__"):
        setattr(con, "__doc__", module.__doc__)

    name = module.__name__
    if hasattr(module, "_name_"):
        name = module._name_  # pylint: disable=W0212

    con = annotated(con, name)
    setattr(con, 'context', True)

    return name, con
def context_from_module(module):
    """
    Given a module, create a context from all of the top level annotated
    symbols in that module.
    """

    con = find_all(module)

    if hasattr(module, "__doc__"):
        setattr(con, "__doc__", module.__doc__)

    name = module.__name__
    if hasattr(module, "_name_"):
        name = module._name_  # pylint: disable=W0212

    con = annotated(con, name)
    setattr(con, 'context', True)

    return name, con
def context_from_module ( module ) : con = find_all ( module ) if hasattr ( module , "__doc__" ) : setattr ( con , "__doc__" , module . __doc__ ) name = module . __name__ if hasattr ( module , "_name_" ) : name = module . _name_ # pylint: disable=W0212 con = annotated ( con , name ) setattr ( con , 'context' , True ) return name , con
Given a module, create a context from all of the top level annotated
    symbols in that module.
Given a module create a context from all of the top level annotated symbols in that module .