patx/micropie
fix two formatting errors in micropie.py (max-line-chars: 120)
Commit 94b5150 · patx · 2025-12-05T01:55:31-05:00
Comments
No comments yet.
Diff
diff --git a/micropie.py b/micropie.py
index 441a2fa..d6f7f21 100644
--- a/micropie.py
+++ b/micropie.py
@@ -137,7 +137,8 @@ class WebSocketRequest(Request):
class WebSocket:
"""Manages WebSocket communication in the MicroPie framework."""
- def __init__(self, receive: Callable[[], Awaitable[Dict[str, Any]]], send: Callable[[Dict[str, Any]], Awaitable[None]]) -> None:
+ def __init__(self, receive: Callable[[], Awaitable[Dict[str, Any]]],
+ send: Callable[[Dict[str, Any]], Awaitable[None]]) -> None:
"""
Initialize a WebSocket instance.
@@ -586,7 +587,8 @@ class App:
if handler == getattr(self, "index", None) and path and path != "index":
sig = inspect.signature(handler)
accepts_params = any(
- param.kind in (inspect.Parameter.POSITIONAL_ONLY, inspect.Parameter.POSITIONAL_OR_KEYWORD, inspect.Parameter.VAR_POSITIONAL)
+ param.kind in (inspect.Parameter.POSITIONAL_ONLY, inspect.Parameter.POSITIONAL_OR_KEYWORD,
+ inspect.Parameter.VAR_POSITIONAL)
for param in sig.parameters.values() if param.name != "self"
)
if not accepts_params: