Skip to content

Commit ed76490

Browse files
author
g97iulio1609
committed
fix: prefix unused 'cancelled' variable with underscore
Resolves pyright reportUnusedVariable error.
1 parent db0dab7 commit ed76490

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mcp/shared/_exception_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def collapse_exception_group(
4646
# split(type) uses isinstance on leaf exceptions, NOT on the group.
4747
# Using split(lambda) is incorrect because the lambda would first be
4848
# called on the group object itself.
49-
cancelled, non_cancelled = eg.split(cancelled_type)
49+
_cancelled, non_cancelled = eg.split(cancelled_type)
5050

5151
if non_cancelled is None:
5252
# Every exception is a cancellation – surface just one.

0 commit comments

Comments
 (0)