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 43778e8 commit 5f070f4Copy full SHA for 5f070f4
bpython/curtsiesfrontend/repl.py
@@ -19,7 +19,6 @@
19
Optional,
20
Tuple,
21
Union,
22
- cast,
23
Type,
24
)
25
from .._typing_compat import Literal
@@ -465,8 +464,7 @@ def __init__(
465
464
466
# as long as the first event received is a window resize event,
467
# this works fine...
468
- self.width: int = cast(int, None)
469
- self.height: int = cast(int, None)
+ self.width, self.height = os.get_terminal_size()
470
471
self.status_bar.message(banner)
472
0 commit comments