Skip to content

Commit 9d6678a

Browse files
author
g97iulio1609
committed
fix: add None guards for pyright reportOptionalMemberAccess
1 parent 8945778 commit 9d6678a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/client/test_auth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,13 +2289,15 @@ def test_merge_disjoint_scopes(self):
22892289
from mcp.client.auth.utils import merge_scopes
22902290

22912291
result = merge_scopes("init", "mcp:tools:read")
2292+
assert result is not None
22922293
scopes = set(result.split())
22932294
assert scopes == {"init", "mcp:tools:read"}
22942295

22952296
def test_merge_overlapping_scopes_deduplicates(self):
22962297
from mcp.client.auth.utils import merge_scopes
22972298

22982299
result = merge_scopes("init mcp:tools:read", "mcp:tools:read mcp:tools:write")
2300+
assert result is not None
22992301
scopes = set(result.split())
23002302
assert scopes == {"init", "mcp:tools:read", "mcp:tools:write"}
23012303

0 commit comments

Comments
 (0)