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
When blockkit is used with the latest version of pydantic, I get errors like
AttributeError: 'StaticSelect' object has no attribute 'get'
This is caused by model validators not checking if passed argument is actually a dictionary
@model_validator(mode="before")def_validate_values(cls, values: Dict) ->Dict:
# I added these 2 lines to fix the issue, but I'm not sure if I'm breaking the validation process hereifnotisinstance(values, dict):
returnvaluesinitial_options=values.get("initial_options")
The text was updated successfully, but these errors were encountered:
When
blockkit
is used with the latest version of pydantic, I get errors likeThis is caused by model validators not checking if passed argument is actually a dictionary
The text was updated successfully, but these errors were encountered: