-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
feat: allow non string types in response #337
Conversation
✅ Deploy Preview for robyn canceled.
|
|
||
// convert the output to a PyDict | ||
let res = Python::with_gil(|py| -> Result<Response> { | ||
let output: Py<PyDict> = output.extract(py)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
converting it to a response shouldn't be crazy hard tbh. I will try again tomorrow 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried implementing it since FromPyObject
conflicts with the Clone
trait. The implementation becomes very hairy.
ba74a35
to
8120f24
Compare
1be8d8f
to
79d83de
Compare
Clippy tests are passing now 🥳 |
Description
This PR fixes #