We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d16fe6 commit 80bd3e0Copy full SHA for 80bd3e0
bpython/curtsiesfrontend/repl.py
@@ -326,7 +326,7 @@ class BaseRepl(Repl):
326
def __init__(
327
self,
328
config: Config,
329
- window: BaseWindow,
+ window: Optional[BaseWindow] = None,
330
locals_: Optional[Dict[str, Any]] = None,
331
banner: Optional[str] = None,
332
interp: Optional[Interp] = None,
@@ -2078,6 +2078,7 @@ def focus_on_subprocess(self, args):
2078
try:
2079
signal.signal(signal.SIGWINCH, self.orig_sigwinch_handler)
2080
with Termmode(self.orig_stdin, self.orig_tcattrs):
2081
+ assert self.window is not None
2082
terminal = self.window.t
2083
with terminal.fullscreen():
2084
sys.__stdout__.write(terminal.save)
0 commit comments