Skip to content

Commit f568ea1

Browse files
BabyChrist666claude
andcommitted
Fix pyright partially unknown type error for mock config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 39a940b commit f568ea1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/client/test_stdio.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,8 @@ def test_jupyter_detection_zmq_shell(self):
718718
"""Test that _is_jupyter_environment returns True for ZMQInteractiveShell."""
719719

720720
class ZMQInteractiveShell:
721-
config: dict[str, object] = {}
721+
def __init__(self) -> None:
722+
self.config: dict[str, str] = {}
722723

723724
mock_ipython_module = MagicMock()
724725
mock_ipython_module.get_ipython = MagicMock(return_value=ZMQInteractiveShell())
@@ -731,7 +732,8 @@ def test_jupyter_detection_non_notebook_ipython(self):
731732
"""Test that _is_jupyter_environment returns False for plain IPython terminal."""
732733

733734
class TerminalInteractiveShell:
734-
config: dict[str, object] = {}
735+
def __init__(self) -> None:
736+
self.config: dict[str, str] = {}
735737

736738
mock_ipython_module = MagicMock()
737739
mock_ipython_module.get_ipython = MagicMock(return_value=TerminalInteractiveShell())

0 commit comments

Comments
 (0)