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

fixed type hinting so that it is not converted to str #1866

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

Snooz82
Copy link
Member

@Snooz82 Snooz82 commented Nov 17, 2023

The problem was that the type hint str did convert everything to string.
So a dictionary {'key': 'value'} does become "{'key': 'value'}" and this is then put to json.dumps
That obviously is then not a js object anymore.

Added tests as well.

@Snooz82
Copy link
Member Author

Snooz82 commented Nov 17, 2023

fixes #1843

Copy link
Member

@yuriverweij yuriverweij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@emanlove emanlove added this to the v6.1.4 milestone Nov 18, 2023
@emanlove emanlove merged commit 3114312 into master Nov 18, 2023
12 checks passed
@emanlove emanlove removed this from the v6.1.4 milestone Nov 19, 2023
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.

3 participants