I am trying to write a generic class that takes a pydantic model type, however the model can only have string fields. So i am trying to verify this at runtime.
I looked and found this answer, but it does not seem to work in v2 as the FieldInfo type that is returned as the values of the dict from model_info does not have a type_ property.