https://prefect.io logo
Title
m

Michael Dymshits

12/20/2022, 12:51 PM
When I import function for
pytest
which has perfect
decorator
, I got the following error (screenshot bellow). If I comment #flow decorator, pytest runs without errors.
k

Khuyen Tran

12/20/2022, 5:25 PM
Prefect uses Pydantic to validate flow’s parameters so this is probably something to do with that. Can you show a minimal example of your code? Can you try setting
validate_parameters=False
and see if you still get the error?
👀 1
m

Michael Dymshits

12/21/2022, 9:52 AM
Thank you @Khuyen Tran! I've tried a
validate_parameters=False
, but it didn't have influence. I will try to create a simple code example.
@Khuyen Tran, Just sharing, and all otheres, who is interested, to what I discovered: 1. Thre problem raises, when one of the dictionary values is a
list
. 2. When I switched from version 2.4.5 to 2.6.9, the problem disappeared 🥳.
🎉 1
k

Khuyen Tran

12/21/2022, 5:06 PM
That’s interesting. We must have fixed this issue in the later versions. I’m glad you solved the issue!