Skip to content

Commit

Permalink
chore: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Jan 27, 2025
1 parent a19e6d0 commit e01acd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slashed/prompt_toolkit_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


if TYPE_CHECKING:
from collections.abc import AsyncIterable, Iterable
from collections.abc import AsyncGenerator, Iterable

from prompt_toolkit.document import Document

Expand Down Expand Up @@ -57,7 +57,7 @@ def get_completions(

async def get_completions_async(
self, document: Document, complete_event: Any
) -> AsyncIterable[Completion]:
) -> AsyncGenerator[Completion, None]:
"""Get completions for the current context."""
text = document.text.lstrip()

Expand Down

0 comments on commit e01acd1

Please sign in to comment.