-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pydantic Field with rx.foreach on state broken #4471
Comments
@adhami3310 maybe we can add our own |
for now as for the issue itself, i'm not sure where this got broken, we should probably bisect it |
The crux of the issue is that |
When determining whether a state var should be marked as optional, check that it is missing both default and default_factory and is not required. Fix #4471
Describe the bug
Using pydantic Field in a state class fails with this error:
TypeError: You must provide an annotation for the state var
tag
. Annotation cannot betyping.Any
.IIRC this used to work and seems like a regression
To Reproduce
Expected behavior
no exception
Specifics (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: