Skip to content

Conversation

@bkmeneguello
Copy link
Contributor

No description provided.

Copy link
Owner

@stevearc stevearc left a comment

Choose a reason for hiding this comment

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

One suggestion and the lint/formatting CI checks need to pass

"{\n"
+ ",\n".join(
['"%s": %s' % (k, stringify_object(v)) for k, v in value.items()]
['%s: %s' % (json.dumps(k, ensure_ascii=False) if isinstance(k, str) else str(k), stringify_object(v)) for k, v in value.items()]
Copy link
Owner

Choose a reason for hiding this comment

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

Instead of inlining this logic, can we do

['%s: %s' % (stringify_object(k), stringify_object(v)) for k, v in value.items()]

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.

2 participants