Python: Fix rendering or callback decorator docs

This commit is contained in:
Simon Hausmann 2025-03-23 13:16:45 +01:00 committed by GitHub
parent 64d446921d
commit ced9ae7b5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -379,9 +379,9 @@ def callback(
) -> typing.Callable[..., Any]:
"""Use the callback decorator to mark a method as a callback that can be invoked from the Slint component.
For the decorator to work, the method must be a member of a class that is Slint component.
For the decorator to work, the method must be a member of a class that is Slint component.
Example:
Example:
```python
import slint