Skip to content

Commit 25ad1ac

Browse files
committed
fix check
1 parent f6385b3 commit 25ad1ac

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ exclude = ["venv", ".tox"]
143143
follow_imports = 'silent'
144144

145145
[[tool.mypy.overrides]]
146-
module = ["datasets.*", "transformers.*", "setuptools.*", "setuptools_git_versioning.*"]
146+
module = ["datasets.*", "transformers.*", "setuptools.*", "setuptools_git_versioning.*", "sanic.*"]
147147
ignore_missing_imports=true
148148

149149

tests/unit/sanic_server.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ async def chat_completions(request: Request):
7979
stream_mode = False
8080
if request.args.get("stream", "false").lower() == "true":
8181
stream_mode = True
82-
if isinstance(body.get("stream"), bool):
83-
stream_mode = body.get("stream")
8482

8583
messages = body.get("messages", [])
8684
prompt_text = ""

0 commit comments

Comments
 (0)