platypush/platypush/event
Fabio Manganiello 32b8296244
[#400] Dynamic logic to infer procedures/hooks arguments.
This allows procedures and event hooks to have more flexible signatures.
Along the lines of:

```python
@when(SomeEvent)
def hook(event):
  ...

@when(SomeOtherEvent)
def hook2():
  ...
```

Instead of supporting only the full context spec:

```python
@when(SomeEvent)
def hook(event, **ctx):
  ...
```

Closes: #400
2024-05-19 02:17:42 +02:00
..
processor Prevent duplicate hook runs. 2024-05-02 00:51:09 +00:00
__init__.py Added docs for config plugin 2021-11-17 23:59:17 +01:00
hook.py [#400] Dynamic logic to infer procedures/hooks arguments. 2024-05-19 02:17:42 +02:00