Skip to content

Commit

Permalink
Update doc-string, remove unused function (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev authored Sep 10, 2024
1 parent 04236b0 commit 8c85293
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions langserve/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ def _setup_global_app_handlers(
) -> None:
with warnings.catch_warnings():
# We are using deprecated functionality here.
# This code should be re-written to simply construct a pydantic model
# using inspect.signature and create_model.
# We should re-write to use lifetime events at some point, and yielding
# an APIRouter instance to the caller.
warnings.filterwarnings(
"ignore",
"[\\s.]*on_event is deprecated[\\s.]*",
Expand All @@ -227,10 +227,6 @@ def green(text: str) -> str:
"""Return the given text in green."""
return "\x1b[1;32;40m" + text + "\x1b[0m"

def orange(text: str) -> str:
"""Return the given text in orange."""
return "\x1b[1;31;40m" + text + "\x1b[0m"

paths = _APP_TO_PATHS[app]
print(LANGSERVE)
for path in paths:
Expand Down

0 comments on commit 8c85293

Please sign in to comment.