Skip to content

Commit 99d9721

Browse files
committed
fix py37 syntax
1 parent e81d602 commit 99d9721

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import os
1616
import shutil
17-
from typing import Dict, Any, List
17+
from typing import Any, Dict, List
1818

1919
# If extensions (or modules to document with autodoc) are in another directory,
2020
# add these directories to sys.path here. If the directory is relative to the

ipykernel/inprocess/channels.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.
55

6-
from jupyter_client.channelsabc import HBChannelABC
76
from typing import List
87

8+
from jupyter_client.channelsabc import HBChannelABC
9+
910
# -----------------------------------------------------------------------------
1011
# Channel classes
1112
# -----------------------------------------------------------------------------

ipykernel/iostream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from binascii import b2a_hex
1414
from collections import deque
1515
from io import StringIO, TextIOBase
16-
from typing import Any, Optional, Callable
16+
from typing import Any, Callable, Optional
1717
from weakref import WeakSet
1818

1919
import zmq

ipykernel/kernelapp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ def init_io(self):
465465

466466
handler.stream = TextIOWrapper(
467467
FileIO(
468-
sys.stderr._original_stdstream_copy, "w" # type:ignore[attr-defined]
468+
sys.stderr._original_stdstream_copy,
469+
"w", # type:ignore[attr-defined]
469470
)
470471
)
471472
if self.displayhook_class:

0 commit comments

Comments
 (0)