Skip to content

Commit cda4401

Browse files
committed
remove pyright upgrade and ruff format
1 parent f2840fe commit cda4401

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ default-groups = ["dev", "docs"]
4747

4848
[dependency-groups]
4949
dev = [
50-
"pyright>=1.1.396",
50+
"pyright>=1.1.391",
5151
"pytest>=8.3.4",
5252
"ruff>=0.8.5",
5353
"trio>=0.26.2",
@@ -115,5 +115,5 @@ filterwarnings = [
115115
# This should be fixed on Uvicorn's side.
116116
"ignore::DeprecationWarning:websockets",
117117
"ignore:websockets.server.WebSocketServerProtocol is deprecated:DeprecationWarning",
118-
"ignore:Returning str or bytes.*:DeprecationWarning:mcp.server.lowlevel",
118+
"ignore:Returning str or bytes.*:DeprecationWarning:mcp.server.lowlevel"
119119
]

src/mcp/server/fastmcp/server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,7 @@ async def handle_sse(scope: Scope, receive: Receive, send: Send):
627627
routes.append(
628628
Route(
629629
self.settings.sse_path,
630-
endpoint=RequireAuthMiddleware(
631-
handle_sse, required_scopes
632-
),
630+
endpoint=RequireAuthMiddleware(handle_sse, required_scopes),
633631
methods=["GET"],
634632
)
635633
)

src/mcp/server/sse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,3 @@ async def handle_post_message(
173173
response = Response("Accepted", status_code=202)
174174
await response(scope, receive, send)
175175
await writer.send(message)
176-

tests/server/fastmcp/auth/test_auth_integration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -987,9 +987,6 @@ async def test_client_registration_invalid_grant_type(
987987
)
988988

989989

990-
991-
992-
993990
class TestAuthorizeEndpointErrors:
994991
"""Test error handling in the OAuth authorization endpoint."""
995992

tests/shared/test_sse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,4 +249,4 @@ async def test_sse_client_timeout(
249249
# we should receive an error here
250250
return
251251

252-
pytest.fail("the client should have timed out and returned an error already")
252+
pytest.fail("the client should have timed out and returned an error already")

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)