Skip to content

Commit e0eb8d1

Browse files
Use 3.9 syntax
1 parent bf031f6 commit e0eb8d1

File tree

1 file changed

+3
-3
lines changed
  • src/fastapi_cloud_cli/commands

1 file changed

+3
-3
lines changed

src/fastapi_cloud_cli/commands/logs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import json
22
import logging
3+
from collections.abc import Generator
34
from datetime import datetime
45
from pathlib import Path
5-
from typing import Dict, Generator, Optional, Union
6+
from typing import Annotated, Optional
67

78
import typer
89
from httpx import HTTPError, HTTPStatusError, ReadTimeout
910
from pydantic import BaseModel, ValidationError
10-
from typing_extensions import Annotated
1111

1212
from fastapi_cloud_cli.utils.api import APIClient
1313
from fastapi_cloud_cli.utils.apps import get_app_config
@@ -30,7 +30,7 @@ def _stream_logs(
3030
follow: bool,
3131
) -> Generator[str, None, None]:
3232
"""Stream logs from the API."""
33-
params: Dict[str, Union[str, int, bool]] = {
33+
params: dict[str, str | int | bool] = {
3434
"tail": tail,
3535
"since": since,
3636
"follow": follow,

0 commit comments

Comments
 (0)