File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments