|
13 | 13 | from prompt_toolkit.filters import Always, Condition, HasFocus, InFocusStack |
14 | 14 | from prompt_toolkit.key_binding.manager import KeyBindingManager |
15 | 15 | from prompt_toolkit.keys import Keys |
16 | | -from prompt_toolkit.layout.containers import HSplit, VSplit, Window, FloatContainer, Float, ConditionalContainer, Layout, ScrollOffsets |
| 16 | +from prompt_toolkit.layout.containers import HSplit, VSplit, Window, FloatContainer, Float, ConditionalContainer, Container, ScrollOffsets |
17 | 17 | from prompt_toolkit.layout.controls import BufferControl, FillControl |
18 | 18 | from prompt_toolkit.layout.dimension import LayoutDimension as D |
19 | 19 | from prompt_toolkit.layout.lexers import PygmentsLexer |
@@ -104,7 +104,7 @@ def create_popup_window(title, body): |
104 | 104 | the `title` text, and a body layout. The window is surrounded by borders. |
105 | 105 | """ |
106 | 106 | assert isinstance(title, six.text_type) |
107 | | - assert isinstance(body, Layout) |
| 107 | + assert isinstance(body, Container) |
108 | 108 |
|
109 | 109 | return HSplit([ |
110 | 110 | VSplit([ |
@@ -137,7 +137,8 @@ def create_popup_window(title, body): |
137 | 137 |
|
138 | 138 | def create_layout(python_input, history_mapping): |
139 | 139 | """ |
140 | | - Create and return a `Layout` instance for the history application. |
| 140 | + Create and return a `Container` instance for the history |
| 141 | + application. |
141 | 142 | """ |
142 | 143 | default_processors = [ |
143 | 144 | HighlightSearchProcessor(preview_search=Always()), |
|
0 commit comments