From c8f82e1f8fe6150fcc1548a8f92f1d0e710f78c3 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Tue, 1 Aug 2023 12:04:16 +0100 Subject: [PATCH] reorder system settings attrs --- .../openbb_core/app/model/system_settings.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/openbb_sdk/sdk/core/openbb_core/app/model/system_settings.py b/openbb_sdk/sdk/core/openbb_core/app/model/system_settings.py index 7d39030216a..b883a7d191b 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/model/system_settings.py +++ b/openbb_sdk/sdk/core/openbb_core/app/model/system_settings.py @@ -20,17 +20,6 @@ FrozenField = partial(Field, allow_mutation=False) class SystemSettings(Tagged): - run_in_isolation: bool = Field( - default=False, - description="Whether or not to run each command in total isolation.", - allow_mutation=False, - ) - dbms_uri: Optional[str] = Field( - default=None, - description="Connection URI like : `mongodb://root:example@localhost:27017/`", - allow_mutation=False, - ) - # System section os: str = FrozenField(default=str(pl.system())) python_version: str = FrozenField(default=str(pl.python_version())) @@ -60,6 +49,14 @@ class SystemSettings(Tagged): test_mode: bool = False debug_mode: bool = False headless: bool = False + run_in_isolation: bool = FrozenField( + default=False, + description="Whether or not to run each command in total isolation.", + ) + dbms_uri: Optional[str] = FrozenField( + default=None, + description="Connection URI like : `mongodb://root:example@localhost:27017/`", + ) class Config: validate_assignment = True