Skip to content

Commit a46c490

Browse files
committed
Add missing return type
1 parent 4faee33 commit a46c490

File tree

1 file changed

+1
-1
lines changed
  • src/prompt_toolkit/filters

1 file changed

+1
-1
lines changed

src/prompt_toolkit/filters/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def has_any_validation_error() -> bool:
178178
from prompt_toolkit.layout.controls import UIControl, BufferControl, SearchBufferControl
179179

180180
# Extract buffer validation errors for buffer UIControl children classes
181-
def get_buffer_from_content(content: UIControl):
181+
def get_buffer_from_content(content: UIControl) -> bool:
182182
if isinstance(content, (BufferControl, SearchBufferControl)):
183183
return content.buffer.validation_error is not None
184184
else:

0 commit comments

Comments
 (0)