mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 07:07:58 +00:00
docs: fixed identation in callback
This commit is contained in:
@@ -133,7 +133,7 @@ Example of a callback:
|
|||||||
```
|
```
|
||||||
Args:
|
Args:
|
||||||
|
|
||||||
whoami (str, optional): What type of system the ConnectionManager is running on (`computer` or `pi`). Defaults to "computer".
|
whoami (str, optional): What type of system the ConnectionManager is running on (`computer` or `pi`). Defaults to "computer".
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -706,7 +706,7 @@ class ConnectionManager(object):
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
def callback(client, value, *args, **kwargs):
|
def callback(client, value, *args, **kwargs):
|
||||||
print(value, args, kwargs)
|
print(value, args, kwargs)
|
||||||
```
|
```
|
||||||
|
|
||||||
First argument passed to callback function is an instance of `ConnectionManager`, representing connection by which the message was received.
|
First argument passed to callback function is an instance of `ConnectionManager`, representing connection by which the message was received.
|
||||||
|
|||||||
Reference in New Issue
Block a user