mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Tree: Switch to Pydantic 2
Pydantic 2 has more modern methods and stability compared to Pydantic 1 Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -18,7 +18,7 @@ def update_from_dict(options_dict: Dict[str, bool]):
|
||||
if value is None:
|
||||
value = False
|
||||
|
||||
config = LogConfig.parse_obj(options_dict)
|
||||
config = LogConfig.model_validate(options_dict)
|
||||
|
||||
def broadcast_status():
|
||||
enabled = []
|
||||
|
||||
Reference in New Issue
Block a user