We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4faee33 commit a46c490Copy full SHA for a46c490
src/prompt_toolkit/filters/app.py
@@ -178,7 +178,7 @@ def has_any_validation_error() -> bool:
178
from prompt_toolkit.layout.controls import UIControl, BufferControl, SearchBufferControl
179
180
# Extract buffer validation errors for buffer UIControl children classes
181
- def get_buffer_from_content(content: UIControl):
+ def get_buffer_from_content(content: UIControl) -> bool:
182
if isinstance(content, (BufferControl, SearchBufferControl)):
183
return content.buffer.validation_error is not None
184
else:
0 commit comments