typedargs/annotate.py
def context(name=None):
    """Declare that a class defines a context.

    Contexts are for use with HierarchicalShell for discovering
    and using functionality from the command line.

    Args:
        name (str): Optional name for this context if you don't want
            to just use the class name.
    """

    def _context(cls):
        annotated(cls, name)
        cls.context = True

        return cls

    return _context
def context(name=None):
    def _context(cls):
        annotated(cls, name)
        cls.context = True

        return cls

    return _context
def context ( name = None ) : def _context ( cls ) : annotated ( cls , name ) cls . context = True return cls return _context
Declare that a class defines a context.

    Contexts are for use with HierarchicalShell for discovering
    and using functionality from the command line.

    Args:
        name (str): Optional name for this context if you don't want
            to just use the class name.
Declare that a class defines a context .