From 9b52f3f21b7cfc30e7b47091197a153c2a8dcc7e Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 26 Apr 2022 02:19:55 -0400 Subject: [PATCH] Island: Add missing type hint to LocalMonkeyRunService constructor --- monkey/monkey_island/cc/services/run_local_monkey.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/run_local_monkey.py b/monkey/monkey_island/cc/services/run_local_monkey.py index be08352e8..a1ae3f6e3 100644 --- a/monkey/monkey_island/cc/services/run_local_monkey.py +++ b/monkey/monkey_island/cc/services/run_local_monkey.py @@ -3,6 +3,7 @@ import os import platform import stat import subprocess +from pathlib import Path from shutil import copyfile from monkey_island.cc.resources.monkey_download import get_agent_executable_path @@ -19,7 +20,7 @@ class LocalMonkeyRunService: # static/singleton hybrids. At the moment, this requires invasive refactoring that's # not a priority. @classmethod - def initialize(cls, data_dir): + def initialize(cls, data_dir: Path): cls.DATA_DIR = data_dir @staticmethod