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
Line 206 in models.py:
strategy: list[Strategy] = Field(..., min_length=1, discriminator="type")
This is the line that generates the error above for Pydantic >= 2.9.
I get an error when running this line of code when using Python version 3.12.3.
from optionlab import VERSION, run_strategy
TypeError: 'list' is not a valid discriminated union variant; should be a
BaseModel
ordataclass
The text was updated successfully, but these errors were encountered: