Added typehints to IslandConfigOptions

This commit is contained in:
VakarisZ 2021-05-24 11:34:55 +03:00
parent 66b3fb1d47
commit 0f49579148
1 changed files with 3 additions and 3 deletions

View File

@ -11,9 +11,9 @@ from monkey_island.cc.server_utils.consts import (
@dataclass
class IslandConfigOptions:
log_level = DEFAULT_LOG_LEVEL
data_dir = DEFAULT_DATA_DIR
start_mongodb = DEFAULT_START_MONGO_DB
log_level: str = DEFAULT_LOG_LEVEL
data_dir: str = DEFAULT_DATA_DIR
start_mongodb: bool = DEFAULT_START_MONGO_DB
@staticmethod
def build_from_config_file_contents(config_contents: dict) -> IslandConfigOptions: