Skip to content

Commit c3a67fb

Browse files
committed
add from __future__ import annotations for Python 3.8
1 parent 32cfde7 commit c3a67fb

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

ipykernel/_version.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""
22
store the current version info of the server.
33
"""
4+
from __future__ import annotations
5+
46
import re
57

68
# Version string must appear intact for hatch versioning

ipykernel/inprocess/channels.py

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

33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.
5+
from __future__ import annotations
56

67
from jupyter_client.channelsabc import HBChannelABC
78

ipykernel/pickleutil.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 copy
68
import pickle
79
import sys

ipykernel/thread.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""Base class for threads."""
2+
from __future__ import annotations
3+
24
import typing as t
35
from threading import Event, Thread
46

0 commit comments

Comments
 (0)