Closed benedikt-bartscher closed 1 week ago
i assumed this would be the case, i can prob turn off validation for that type? or modify it?
anyways, how do you hit this in normal reflex code?
i assumed this would be the case, i can prob turn off validation for that type? or modify it?
anyways, how do you hit this in normal reflex code?
i am just hitting this in a pytest, seems not to happen at runtime
If the validation does not run during normal runtime, I would suggest disabling it for pytest as well.
Otherwise, we could try to "unwrap" the annotation/type f.e. in __init_subclass__
in a way that pydantic recognizes the inner type
We could then add some tests for the new typed events and vars. Btw, this is awesome, thank you very much for the new typing experience (I just removed hundreds of ignore comments).
Unrelated to this issue, but could we add @rx.event
typing for @rx.background
? It currently works if I chain both decorators.
could we add @rx.event typing for @rx.background? It currently works if I chain both decorators
we're thinking of doing @rx.event(background=True)
, anyways you can make an issue so i remember to do this
Describe the bug
cc @adhami3310
To Reproduce
Expected behavior no errror
Specifics (please complete the following information):