Skip to content

Commit

Permalink
Fix typing in puppet target
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwartzentruber committed May 28, 2024
1 parent d73d5d3 commit 9caf843
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions grizzly/target/puppet_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from signal import SIGABRT, Signals
from tempfile import TemporaryDirectory, mkdtemp
from time import sleep, time
from typing import Dict, Optional, Set, cast
from typing import Any, Dict, Optional, Set, cast

try:
from signal import SIGUSR1 # pylint: disable=ungrouped-imports
Expand All @@ -25,7 +25,7 @@
from psutil import AccessDenied, NoSuchProcess, Process, process_iter, wait_procs

from ..common.report import Report
from ..common.utils import grz_tmp
from ..common.utils import CertificateBundle, grz_tmp
from .target import Result, Target, TargetLaunchError, TargetLaunchTimeout
from .target_monitor import TargetMonitor

Expand Down Expand Up @@ -100,9 +100,9 @@ def __init__(
launch_timeout: int,
log_limit: int,
memory_limit: int,
**kwds,
**kwds: Dict[str, Any],
) -> None:
certs = kwds.pop("certs", None)
certs = cast(Optional[CertificateBundle], kwds.pop("certs", None))
# only pass certs to FFPuppet if certutil is available
# otherwise certs can't be used
if certs and not certutil_available(certutil_find(binary)):
Expand Down Expand Up @@ -133,7 +133,7 @@ def __init__(
# create Puppet object
self._puppet = FFPuppet(
debugger=self._debugger,
headless=kwds.pop("headless", None),
headless=cast(Optional[str], kwds.pop("headless", None)),
working_path=str(grz_tmp("target")),
)
if kwds:
Expand Down

0 comments on commit 9caf843

Please sign in to comment.