We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddfeb97 commit 4b1072eCopy full SHA for 4b1072e
1 file changed
src/fastapi_cloud_cli/commands/logs.py
@@ -2,7 +2,7 @@
2
import logging
3
from datetime import datetime
4
from pathlib import Path
5
-from typing import Generator
+from typing import Dict, Generator, Optional, Union
6
7
import typer
8
from httpx import HTTPError, HTTPStatusError, ReadTimeout
@@ -30,7 +30,7 @@ def _stream_logs(
30
follow: bool,
31
) -> Generator[str, None, None]:
32
"""Stream logs from the API."""
33
- params = {
+ params: Dict[str, Union[str, int, bool]] = {
34
"tail": tail,
35
"since": since,
36
"follow": follow,
@@ -71,7 +71,7 @@ def _format_log_line(log: LogEntry) -> str:
71
72
def logs(
73
path: Annotated[
74
- Path | None,
+ Optional[Path],
75
typer.Argument(
76
help="Path to the folder containing the app (defaults to current directory)"
77
),
0 commit comments