From fc14a1f573612d8a479db2816452ecb1e7c2ffc1 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 22 Aug 2022 11:34:31 -0400 Subject: [PATCH] Common: Make InfectionMonkeyModelConfig immutable --- monkey/common/base_models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monkey/common/base_models.py b/monkey/common/base_models.py index 5d82be324..9521e4e68 100644 --- a/monkey/common/base_models.py +++ b/monkey/common/base_models.py @@ -5,6 +5,7 @@ from pydantic import BaseModel, Extra, ValidationError class InfectionMonkeyModelConfig: + allow_mutation = False underscore_attrs_are_private = True extra = Extra.forbid