Skip to content

Commit 4b1072e

Browse files
Appease linter
1 parent ddfeb97 commit 4b1072e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/fastapi_cloud_cli/commands

src/fastapi_cloud_cli/commands/logs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33
from datetime import datetime
44
from pathlib import Path
5-
from typing import Generator
5+
from typing import Dict, Generator, Optional, Union
66

77
import typer
88
from httpx import HTTPError, HTTPStatusError, ReadTimeout
@@ -30,7 +30,7 @@ def _stream_logs(
3030
follow: bool,
3131
) -> Generator[str, None, None]:
3232
"""Stream logs from the API."""
33-
params = {
33+
params: Dict[str, Union[str, int, bool]] = {
3434
"tail": tail,
3535
"since": since,
3636
"follow": follow,
@@ -71,7 +71,7 @@ def _format_log_line(log: LogEntry) -> str:
7171

7272
def logs(
7373
path: Annotated[
74-
Path | None,
74+
Optional[Path],
7575
typer.Argument(
7676
help="Path to the folder containing the app (defaults to current directory)"
7777
),

0 commit comments

Comments
 (0)