Skip to content

Commit dfea44c

Browse files
Fix type annotations in test_lowlevel_exception_handling.py
Added proper type hints for parametrized test function parameters to resolve pyright errors.
1 parent 1934a58 commit dfea44c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/server/test_lowlevel_exception_handling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import Type
12
from unittest.mock import AsyncMock, Mock
23

34
import pytest
@@ -34,7 +35,7 @@ async def test_exception_handling_with_raise_exceptions_true():
3435
(Exception, "Basic error"),
3536
],
3637
)
37-
async def test_exception_handling_with_raise_exceptions_false(exception_class, message):
38+
async def test_exception_handling_with_raise_exceptions_false(exception_class: Type[Exception], message: str):
3839
"""Test that exceptions are logged when raise_exceptions=False"""
3940
server = Server("test-server")
4041
session = Mock(spec=ServerSession)

0 commit comments

Comments
 (0)