Skip to content

Commit

Permalink
🚨 run lint
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jun 24, 2024
1 parent 989a855 commit 771d1bd
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions ozi/new/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def validate(self, document: Document) -> None: # pragma: no cover # noqa: ANN
_T = TypeVar('_T')


class Admonition(RadioList):
class Admonition(RadioList[_T]):
"""Simple scrolling text dialog."""

open_character = ''
close_character = ''
container_style = 'class:admonition-list'
Expand All @@ -130,14 +132,14 @@ class Admonition(RadioList):
multiple_selection = False

def __init__(
self,
self, # noqa: ANN101
values: Sequence[tuple[_T, Any]],
default: _T | None = None,
) -> None:
super().__init__(values, default)
super().__init__(values, default) # pragma: no cover

def _handle_enter(self) -> None:
pass
def _handle_enter(self) -> None: # noqa: ANN101
pass # pragma: no cover


def admonition_dialog(
Expand All @@ -146,11 +148,8 @@ def admonition_dialog(
ok_text: str = '✔ Ok',
cancel_text: str = '✘ Exit',
style: BaseStyle | None = None,
) -> Application[list[_T]]:
"""
Display a simple list of element the user can choose multiple values amongst.
Several elements can be selected at a time using Arrow keys and Enter.
) -> Application[list[Any]]: # pragma: no cover
"""Admonition dialog shortcut.
The focus can be moved between the list and the Ok/Cancel button with tab.
"""

Expand Down

0 comments on commit 771d1bd

Please sign in to comment.