4. Using decorators¶
-
@event(event_cls)¶ Remove name of the decorated function.
-
@events(*event_classes)¶ Remove name of the decorated function.
-
@no_events¶ Remove name of the decorated function.
Decorator
|
Параметры
декорируемой
функции
|
Пример использования
|
|
update, data | |
|
update, event_cls, data | |
|
update, data |