You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an error ValueError: dictionary update sequence element #0 has length X; 2 is required raised when using dict() on a valid instance of FeatureCollection.
It turns out that Prefect, since version 3.2.16 we believe, start applying a dict on flows input parameters if these parameters are Pydantic models (see here)
Since the dict fails on FeatureCollections, it makes unusable in this context.
The text was updated successfully, but these errors were encountered:
Description
We have an error
ValueError: dictionary update sequence element #0 has length X; 2 is required
raised when usingdict()
on a valid instance ofFeatureCollection
.How to reproduce
Expected
The call to
dict
should return a dictObserved
The call to
dict
raises aValueError
Why is this an issue
We are using
FeatureCollection
as an input parameter type for a Prefect flow.It looks something like this
It turns out that Prefect, since version 3.2.16 we believe, start applying a
dict
on flows input parameters if these parameters are Pydantic models (see here)Since the
dict
fails onFeatureCollection
s, it makes unusable in this context.The text was updated successfully, but these errors were encountered: