Skip to content

Commit 88a1b85

Browse files
committed
Allow type | None syntax on python 3.9
1 parent 1757bd6 commit 88a1b85

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

ipykernel/shellchannel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A thread for a shell channel."""
2+
from __future__ import annotations
23

34
from typing import Any
45

ipykernel/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import Any
24

35
import zmq

tests/test_connect.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.
5-
65
import errno
76
import json
87
import os

tests/test_subshells.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.
5+
from __future__ import annotations
6+
57
import platform
68
import time
79

0 commit comments

Comments
 (0)