class documentation

Represents a decorator on a #Class or #Function.

Method __init__ Undocumented
Instance Variable arglist Decorator arguments, one item per argument. For keyword arguments, the keyword name and equals sign preceed the argument value expression code.
Instance Variable location The location of the decoration in the source code.
Instance Variable name The name of the decorator (i.e. the text between the @ and (). In languages that support it, this may be a piece of code.

Inherited from _HasInitAttribsMethod:

Method _init_attribs A method to define extra attributes that will be set after initialization.
def __init__(self, location, name, arglist=None): (source)

Undocumented

Parameters
location:LocationUndocumented
name:strUndocumented
arglist:t.Optional[t.List[str]]Undocumented

Decorator arguments, one item per argument. For keyword arguments, the keyword name and equals sign preceed the argument value expression code.

location: Location = (source)

The location of the decoration in the source code.

name: str = (source)

The name of the decorator (i.e. the text between the @ and (). In languages that support it, this may be a piece of code.