synt.stmt.decorator
¤
DecoratorGroup
¤
A group of decorators.
Source code in synt/stmt/decorator.py
__init__
¤
|
Initialize a decorator and create a new group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
decorator |
IntoExpression
|
The decorator to add. |
required |
dec
¤
|
Append a new decorator.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
decorator |
IntoExpression
|
The decorator to add. |
required |
class_
¤
|
Initialize a class with the decorators.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
Identifier
|
The name of the class. |
required |
def_
¤
|
Initialize a function with the decorators.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
Identifier
|
The name of the function. |
required |
async_def
¤
|
Initialize an async function with the decorators.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
Identifier
|
The name of the function. |
required |