Skip to content

Commit a10a4eb

Browse files
committed
ignores
1 parent 921073f commit a10a4eb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ipykernel/pylab/backend_inline.py

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

66
import warnings
77

8-
from matplotlib_inline.backend_inline import * # type:ignore[import-untyped] # noqa: F403 # analysis: ignore
8+
from matplotlib_inline.backend_inline import * # noqa: F403 # analysis: ignore
99

1010
warnings.warn(
1111
"`ipykernel.pylab.backend_inline` is deprecated, directly "

ipykernel/pylab/config.py

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

66
import warnings
77

8-
from matplotlib_inline.config import * # type:ignore[import-untyped] # noqa: F403 # analysis: ignore
8+
from matplotlib_inline.config import * # noqa: F403 # analysis: ignore
99

1010
warnings.warn(
1111
"`ipykernel.pylab.config` is deprecated, directly use `matplotlib_inline.config`",

ipykernel/zmqshell.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def edit(self, parameter_s="", last_call=None):
352352

353353
payload = {"source": "edit_magic", "filename": filename, "line_number": lineno}
354354
assert self.shell is not None
355-
self.shell.payload_manager.write_payload(payload)
355+
self.shell.payload_manager.write_payload(payload) # type: ignore[unreachable]
356356

357357
# A few magics that are adapted to the specifics of using pexpect and a
358358
# remote terminal
@@ -361,7 +361,7 @@ def edit(self, parameter_s="", last_call=None):
361361
def clear(self, arg_s):
362362
"""Clear the terminal."""
363363
assert self.shell is not None
364-
if os.name == "posix":
364+
if os.name == "posix": # type: ignore[unreachable]
365365
self.shell.system("clear")
366366
else:
367367
self.shell.system("cls")
@@ -383,7 +383,7 @@ def less(self, arg_s):
383383

384384
if arg_s.endswith(".py"):
385385
assert self.shell is not None
386-
cont = self.shell.pycolorize(openpy.read_py_file(arg_s, skip_encoding_cookie=False))
386+
cont = self.shell.pycolorize(openpy.read_py_file(arg_s, skip_encoding_cookie=False)) # type: ignore[unreachable]
387387
else:
388388
with open(arg_s) as fid:
389389
cont = fid.read()
@@ -398,7 +398,7 @@ def less(self, arg_s):
398398
def man(self, arg_s):
399399
"""Find the man page for the given command and display in pager."""
400400
assert self.shell is not None
401-
page.page(self.shell.getoutput("man %s | col -b" % arg_s, split=False))
401+
page.page(self.shell.getoutput("man %s | col -b" % arg_s, split=False)) # type: ignore[unreachable]
402402

403403
@line_magic
404404
def connect_info(self, arg_s):

0 commit comments

Comments
 (0)