fixed flake8 lint errors
This commit is contained in:
@@ -5,7 +5,7 @@ pyserve down - Stop all services
|
||||
import signal
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import Optional, cast
|
||||
from typing import cast
|
||||
|
||||
import click
|
||||
|
||||
@@ -56,6 +56,7 @@ def down_cmd(
|
||||
|
||||
try:
|
||||
import os
|
||||
|
||||
# FIXME: Please fix the cast usage here
|
||||
os.kill(cast(int, daemon_pid), signal.SIGTERM)
|
||||
|
||||
@@ -93,8 +94,8 @@ def down_cmd(
|
||||
|
||||
console.print("[bold]Stopping services...[/bold]")
|
||||
|
||||
from .._runner import ServiceRunner
|
||||
from ...config import Config
|
||||
from .._runner import ServiceRunner
|
||||
|
||||
config_path = Path(ctx.config_file)
|
||||
if config_path.exists():
|
||||
|
||||
Reference in New Issue
Block a user