Skip to content

Commit

Permalink
docs: fixed docs building after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 15, 2024
1 parent b843e88 commit 52eaed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def setup(app):
nitpicky = True
nitpick_ignore = [
("py:class", "collections.abc.Generator"),
("py:class", "collections.abc.Callable"),
("py:class", "pathlib.Path"),
("py:class", "flask.app.Flask"),
("py:class", "gptme.tools.python.T"),
Expand Down
8 changes: 1 addition & 7 deletions gptme/tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@
exclusive_mode = False


class ConfirmFunc(Protocol):
def __call__(self, msg: str) -> bool: ...


def ask_confirm(msg: str) -> bool:
"""Asks the user for confirmation."""
return input(f"{msg} [y/n] ").lower().startswith("y")
ConfirmFunc = Callable[[str], bool]


class ExecuteFunc(Protocol):
Expand Down

0 comments on commit 52eaed9

Please sign in to comment.