forked from aegis/pyserveX
fixed pyservectl linter errors and formatting
This commit is contained in:
@@ -5,7 +5,7 @@ pyserve logs - View service logs
|
||||
import asyncio
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
from typing import Any, Optional
|
||||
|
||||
import click
|
||||
|
||||
@@ -56,8 +56,8 @@ import click
|
||||
)
|
||||
@click.pass_obj
|
||||
def logs_cmd(
|
||||
ctx,
|
||||
services: tuple,
|
||||
ctx: Any,
|
||||
services: tuple[str, ...],
|
||||
follow: bool,
|
||||
tail: int,
|
||||
since: Optional[str],
|
||||
@@ -65,7 +65,7 @@ def logs_cmd(
|
||||
timestamps: bool,
|
||||
no_color: bool,
|
||||
filter_pattern: Optional[str],
|
||||
):
|
||||
) -> None:
|
||||
"""
|
||||
View service logs.
|
||||
|
||||
@@ -165,15 +165,15 @@ def _parse_time(time_str: str) -> Optional[float]:
|
||||
|
||||
|
||||
def _read_logs(
|
||||
log_files,
|
||||
service_colors,
|
||||
log_files: list[tuple[str, Path]],
|
||||
service_colors: dict[str, str],
|
||||
tail: int,
|
||||
since_time: Optional[float],
|
||||
until_time: Optional[float],
|
||||
timestamps: bool,
|
||||
no_color: bool,
|
||||
filter_pattern: Optional[str],
|
||||
):
|
||||
) -> None:
|
||||
import re
|
||||
|
||||
from ..output import console
|
||||
@@ -231,12 +231,12 @@ def _read_logs(
|
||||
|
||||
|
||||
async def _follow_logs(
|
||||
log_files,
|
||||
service_colors,
|
||||
log_files: list[tuple[str, Path]],
|
||||
service_colors: dict[str, str],
|
||||
timestamps: bool,
|
||||
no_color: bool,
|
||||
filter_pattern: Optional[str],
|
||||
):
|
||||
) -> None:
|
||||
from ..output import console
|
||||
|
||||
positions = {}
|
||||
|
||||
Reference in New Issue
Block a user