fix two formatting errors in micropie.py (max-line-chars: 120)

Commit 94b5150 · patx · 2025-12-05T01:55:31-05:00

Changeset
94b5150d5db1577cb0027a0666ddc1a29ec33c6d
Parents
6f5f8409c7631f2122f7ebf2fa31612f24962aee

View source at this commit

Comments

No comments yet.

Log in to comment

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: