Open shroominic opened 6 months ago
I currently dont have an idea on how to improve it but I feel like this is not yet done and could be more pythonic. Just wanted to make this issues to note that we need to think about how to get this into a clean syntax.
https://github.com/pydantic/FastUI/blob/6b7c7cba5250eaf044bc312199fd877878334087/demo/sse.py#L20-L22
ye fair, we can add a utility to help with this.
I currently dont have an idea on how to improve it but I feel like this is not yet done and could be more pythonic. Just wanted to make this issues to note that we need to think about how to get this into a clean syntax.
https://github.com/pydantic/FastUI/blob/6b7c7cba5250eaf044bc312199fd877878334087/demo/sse.py#L20-L22