Skip to content

Commit

Permalink
🚑 Fix #38 again
Browse files Browse the repository at this point in the history
Add set_completer_delims(), set_completer() for fake readline
  • Loading branch information
Freed-Wu committed Feb 1, 2024
1 parent 5755acf commit 5b8a6bd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/translate_shell/external/readline/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
`readline <https://docs.python.org/3/library/readline.html>`_.
"""

from collections.abc import Callable


def read_history_file(unused_path: str) -> None:
"""Read history file.
Expand All @@ -26,6 +28,24 @@ def write_history_file(unused_path: str) -> None:
"""


def set_completer_delims(delims: str) -> None:
"""Set completer delims.
:param delims:
:type delims: str
:rtype: None
"""


def set_completer(completer: Callable[[str, int], str]) -> None:
"""Set completer.
:param completer:
:type completer: Callable[[str, int], str]
:rtype: None
"""


def add_history(unused_path: str) -> None:
"""Add history.
Expand Down

0 comments on commit 5b8a6bd

Please sign in to comment.