Open flxst opened 1 month ago
The namespace model_ is protected by pydantic (https://docs.pydantic.dev/2.7/api/config/#pydantic.config.ConfigDict.protected_namespaces). Whenever we use an attribute starting with model_, we currently need to add a few lines to suppress the warning, see #108, #109, #199.
model_
We should perhaps come up with a permanent solution in order for the problem to not reappear every time we introduce a new attribute model_ somewhere (e.g. thin wrapper around BaseModel).
BaseModel
The namespace
model_
is protected by pydantic (https://docs.pydantic.dev/2.7/api/config/#pydantic.config.ConfigDict.protected_namespaces). Whenever we use an attribute starting withmodel_
, we currently need to add a few lines to suppress the warning, see #108, #109, #199.We should perhaps come up with a permanent solution in order for the problem to not reappear every time we introduce a new attribute
model_
somewhere (e.g. thin wrapper aroundBaseModel
).