Skip to content

Commit 5fe0a8f

Browse files
committed
fix-lint
1 parent 990bc16 commit 5fe0a8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ipykernel/zmqshell.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from IPython.utils.process import arg_split, system # type:ignore[attr-defined]
3636
from jupyter_client.session import Session, extract_header
3737
from jupyter_core.paths import jupyter_runtime_dir
38-
from traitlets import Any, CBool, CBytes, Instance, Type, default, observe
38+
from traitlets import Any, CBool, CBytes, Instance, default, observe
3939

4040
from ipykernel import connect_qtconsole, get_connection_file, get_connection_info
4141
from ipykernel.displayhook import ZMQShellDisplayHook
@@ -44,7 +44,7 @@
4444
try:
4545
from IPython.core.history import HistoryOutput
4646
except ImportError:
47-
HistoryOutput = None # type: ignore[assignment]
47+
HistoryOutput: type | None = None
4848

4949
# -----------------------------------------------------------------------------
5050
# Functions and classes
@@ -517,8 +517,8 @@ def __init__(self, *args, **kwargs):
517517
self._parent_header = contextvars.ContextVar("parent_header")
518518
self._parent_header.set({})
519519

520-
displayhook_class = Type(ZMQShellDisplayHook)
521-
display_pub_class = Type(ZMQDisplayPublisher)
520+
displayhook_class = type(ZMQShellDisplayHook)
521+
display_pub_class = type(ZMQDisplayPublisher)
522522
data_pub_class = Any()
523523
kernel = Any()
524524
_parent_header: contextvars.ContextVar[dict[str, Any]]

0 commit comments

Comments
 (0)