Replies: 3 comments 5 replies
-
@nss350 My case: it is produced when I try to inherit from a parent class. Parent class does not raise the problem. |
Beta Was this translation helpful? Give feedback.
-
Today I debugged the error I ignored for a while. |
Beta Was this translation helpful? Give feedback.
-
Another solution is to add |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've was writing a class using pydantic which has an attribute named "params_". When I try and build documentation for the class using autodoc pydantic, the following error gets raised in pydantic._internal._fields.collect_model_fields.
NameError: Field "model_fields" conflicts with member {'params_': FieldInfo(annotation=ndarray, required=False)} of protected namespace "model_".
From reading about protected namespaces, I don't get the impression that the attribute name "params_" should flag this error, but putting this here as it may not be a bug.
Any suggestions appreciated.
Beta Was this translation helpful? Give feedback.
All reactions