@devries-cameron20 / open-alice / commits / e078480
Fork 0

Alice — an open-source AI trading bot covering equities, crypto, commodities, forex, and macro

Fix mypy untyped-decorator errors in webhook Flask routes

Camo67 committed Oct 12, 2026 at 16:58 UTC e078480e31899377ca69074c3a1db4a21f933b06
1 file changed +2 -2
src/open_alice/signals/webhook.py
+2 -2
@@ -167,7 +167,7 @@ def create_webhook_app(receiver: SignalReceiver, host: str = "0.0.0.0", port: in
167
168 app = Flask(__name__)
169
170 - @app.route("/webhook", methods=["POST"])
170 + @app.route("/webhook", methods=["POST"]) # type: ignore[untyped-decorator]
171 def webhook() -> Any:
172 if not request.is_json:
173 return jsonify({"error": "Expected JSON"}), 400
@@ -181,7 +181,7 @@ def create_webhook_app(receiver: SignalReceiver, host: str = "0.0.0.0", port: in
181 logger.info("Received signal: %s", signal)
182 return jsonify({"status": "received", "signal": signal.__dict__}), 200
183
184 - @app.route("/health", methods=["GET"])
184 + @app.route("/health", methods=["GET"]) # type: ignore[untyped-decorator]
185 def health() -> Any:
186 return jsonify({"status": "healthy"}), 200
187