forked from p34709852/monkey
Added typehints to IslandConfigOptions
This commit is contained in:
parent
66b3fb1d47
commit
0f49579148
|
@ -11,9 +11,9 @@ from monkey_island.cc.server_utils.consts import (
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class IslandConfigOptions:
|
class IslandConfigOptions:
|
||||||
log_level = DEFAULT_LOG_LEVEL
|
log_level: str = DEFAULT_LOG_LEVEL
|
||||||
data_dir = DEFAULT_DATA_DIR
|
data_dir: str = DEFAULT_DATA_DIR
|
||||||
start_mongodb = DEFAULT_START_MONGO_DB
|
start_mongodb: bool = DEFAULT_START_MONGO_DB
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def build_from_config_file_contents(config_contents: dict) -> IslandConfigOptions:
|
def build_from_config_file_contents(config_contents: dict) -> IslandConfigOptions:
|
||||||
|
|
Loading…
Reference in New Issue