Skip to content

Commit ab34145

Browse files
committed
Use Optional, as | fails at runtime for qtconsole
1 parent 9ef0387 commit ab34145

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipykernel/inprocess/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# -----------------------------------------------------------------------------
1313

1414

15-
from typing import Any
15+
from typing import Any, Optional
1616

1717
from jupyter_client.client import KernelClient
1818
from jupyter_client.clientabc import KernelClientABC
@@ -110,8 +110,8 @@ async def execute( # type:ignore [override]
110110
code: str,
111111
silent: bool = False,
112112
store_history: bool = True,
113-
user_expressions: dict[str, Any] | None = None,
114-
allow_stdin: bool | None = None,
113+
user_expressions: Optional[dict[str, Any]] = None,
114+
allow_stdin: Optional[bool] = None,
115115
stop_on_error: bool = True,
116116
) -> str:
117117
"""Execute code on the client."""

0 commit comments

Comments
 (0)