Skip to content
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

Merged
merged 4 commits into from
Dec 20, 2022
Merged

Conversation

sansyrox
Copy link
Member

Description

This PR fixes #

@netlify
Copy link

netlify bot commented Dec 14, 2022

Deploy Preview for robyn canceled.

Name Link
🔨 Latest commit 79d83de
🔍 Latest deploy log https://app.netlify.com/sites/robyn/deploys/63a1ade00757c6000986f002

@sansyrox sansyrox marked this pull request as ready for review December 17, 2022 21:03

// convert the output to a PyDict
let res = Python::with_gil(|py| -> Result<Response> {
let output: Py<PyDict> = output.extract(py)?;
Copy link
Member Author

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 😅

Copy link
Member Author

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.

src/executors/mod.rs Outdated Show resolved Hide resolved
src/executors/mod.rs Outdated Show resolved Hide resolved
@sansyrox
Copy link
Member Author

Clippy tests are passing now 🥳

@sansyrox sansyrox merged commit a7dbb5d into main Dec 20, 2022
@sansyrox sansyrox deleted the feat/non-string-response branch December 20, 2022 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant