You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Lowlevel `Server`: constructor parameters are now keyword-only
475
+
476
+
All parameters after `name` are now keyword-only. If you were passing `version` or other parameters positionally, use keyword arguments instead:
477
+
478
+
```python
479
+
# Before (v1)
480
+
server = Server("my-server", "1.0")
481
+
482
+
# After (v2)
483
+
server = Server("my-server", version="1.0")
484
+
```
485
+
474
486
### Lowlevel `Server`: decorator-based handlers replaced with constructor `on_*` params
475
487
476
488
The lowlevel `Server` class no longer uses decorator methods for handler registration. Instead, handlers are passed as `on_*` keyword arguments to the constructor.
0 commit comments