Island: Add missing type hint to LocalMonkeyRunService constructor

This commit is contained in:
Mike Salvatore 2022-04-26 02:19:55 -04:00
parent 3d931b11f9
commit 9b52f3f21b
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import os
import platform import platform
import stat import stat
import subprocess import subprocess
from pathlib import Path
from shutil import copyfile from shutil import copyfile
from monkey_island.cc.resources.monkey_download import get_agent_executable_path 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 # static/singleton hybrids. At the moment, this requires invasive refactoring that's
# not a priority. # not a priority.
@classmethod @classmethod
def initialize(cls, data_dir): def initialize(cls, data_dir: Path):
cls.DATA_DIR = data_dir cls.DATA_DIR = data_dir
@staticmethod @staticmethod