From 760eb2c1916d1966804eafc83f6a8baeadd67582 Mon Sep 17 00:00:00 2001 From: "Ankush Pala ankush@lastmileai.dev" <> Date: Fri, 23 Feb 2024 17:55:23 -0500 Subject: [PATCH] rfc: solution for #197 see #197 Protected namespaces are for warnings, shouldn't cause an error. ## Testplan Import aiconfig in my interpreter -> no pydantic warning https://github.com/lastmile-ai/aiconfig/assets/141073967/cad68bd9-5ab7-4f5e-ae90-6e249b2e439d --- python/src/aiconfig/schema.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/src/aiconfig/schema.py b/python/src/aiconfig/schema.py index 0a7a465b7..898786c68 100644 --- a/python/src/aiconfig/schema.py +++ b/python/src/aiconfig/schema.py @@ -228,6 +228,7 @@ class ConfigMetadata(BaseModel): class Config: extra = "allow" + protected_namespaces = () class AIConfig(BaseModel):