-
-
Notifications
You must be signed in to change notification settings - Fork 6
Description
We have some Pydantic models that have dynamically generated field attributes, such as description
and default
. Currently, the static analyzer crashes on this (when attempting ast.literal_eval
), but looking at the code it looks like the dynamic analyzer should be able to handle this. However, I don't see any way to trigger it.
Ideally, when something like this is encountered, the static analyzer would mark the class/attribute in question and additionally perform dynamic analysis on it. If that is not possible/desirable, having a way to manually force dynamic analysis (also when using MkDocs), possibly for specific classes, would be useful as well.
I could work on a PR but first wanted to check if a feature like this was maybe already planned, or if it is purposefully not going to be implemented.