refactor(cli): drop Python 3.9 (#32964)

This commit is contained in:
Mason Daugherty
2025-09-15 19:22:53 -04:00
committed by GitHub
parent 369858de19
commit 244c699551
18 changed files with 634 additions and 730 deletions

View File

@@ -1,6 +1,8 @@
"""LangChain CLI."""
from typing import Annotated, Optional
from __future__ import annotations
from typing import Annotated
import typer
@@ -61,11 +63,11 @@ def _main(
def serve(
*,
port: Annotated[
Optional[int],
int | None,
typer.Option(help="The port to run the server on"),
] = None,
host: Annotated[
Optional[str],
str | None,
typer.Option(help="The host to run the server on"),
] = None,
) -> None: