mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-13 15:04:59 -05:00
Previously we used python's own type introspection utilties to determine input and output field types. We can use pydantic to get the field types in a clearer, more direct way. This improvement also exposed an awkward behaviour in this utility, where it would return None when a field doesn't exist. I've added a comment in the code describing the issue, but changing it would require some significant changes and I don't want to risk breaking anything.