Skip to content

Commit

Permalink
Adjust style to match standards
Browse files Browse the repository at this point in the history
  • Loading branch information
x24git committed Apr 21, 2023
1 parent 0218f5c commit 3c889ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/prompt_toolkit/filters/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def get_buffer_from_content(content: UIControl) -> bool:
return content.buffer.validation_error is not None
else:
return False

# Get all windows for the current layout
windows = get_app().layout.find_all_windows()
# Iterate over each window in the layout and return true if any of the buffers have validation errors
Expand Down
4 changes: 3 additions & 1 deletion src/prompt_toolkit/widgets/toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ def __pt_container__(self) -> Container:


class ValidationToolbar:
def __init__(self, show_position: bool = False, buffer: Buffer | None = None) -> None:
def __init__(
self, show_position: bool = False, buffer: Buffer | None = None
) -> None:
def get_formatted_text() -> StyleAndTextTuples:
# If buffer not specified, use the currently focused buffer
if buffer is None:
Expand Down

0 comments on commit 3c889ea

Please sign in to comment.