diff --git a/ipykernel/zmqshell.py b/ipykernel/zmqshell.py index bd3f8ef41..0833432bf 100644 --- a/ipykernel/zmqshell.py +++ b/ipykernel/zmqshell.py @@ -369,7 +369,7 @@ def clear(self, arg_s): if os.name == "nt": # This is the usual name in windows - cls = line_magic("cls")(clear) + cls = line_magic("cls")(clear) # type: ignore[arg-type,var-annotated] # Terminal pagers won't work over pexpect, but we do have our own pager @@ -390,7 +390,7 @@ def less(self, arg_s): cont = fid.read() page.page(cont) - more = line_magic("more")(less) + more = line_magic("more")(less) # type: ignore[arg-type,var-annotated] # Man calls a pager, so we also need to redefine it if os.name == "posix":