Hi! I'm having some trouble with pydantic objects...
# ask-the-community
j
Hi! I'm having some trouble with pydantic objects containing bool properties being passed between task where those properties are not maintaining correct typing. Wondering if anyone has found this and has a workaround/path to solve it? Details at https://github.com/flyteorg/flyte/issues/5409
y
yeah we’ve noticed some other pydantic issues. we are working towards revising how it works a bit more fundamentally, hopefully fixing some bugs in the process.
in this particular case though, are you sure the pydantic plugin has been loaded?
pickle is not supposed to be used. pickle is a last resort option
j
I didnt know about a pydantic plugin tbh, just installed it (https://pypi.org/project/flytekitplugins-pydantic/) But traceback is the same, keeps using pickle.
Any sample code to test the plugin is being loaded correctly i can use?
y
flytekit runs on its own typing system, so the plugin helps with translating between your pydantic type, and the flyte type. unf. in this case it looks like the plugin is still operating on v1.
we’ll have to do some digging and cleanup.
j
so you mean the plygin isnt updated to latest of pyflyte therefore not working? or that i need do figure something else?