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.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too