Skip to content

Support string literal types as keys in JSON - #78

Merged
jcrist merged 1 commit into
masterfrom
support-str-literal-key-json
Feb 28, 2022
Merged

Support string literal types as keys in JSON#78
jcrist merged 1 commit into
masterfrom
support-str-literal-key-json

Conversation

@jcrist

@jcrist jcrist commented Feb 28, 2022

Copy link
Copy Markdown
Member

Previously this was restricted to str or Any types only, we now also
support string literal types. We could extend this to any type that
encodes as a string, but I'm reluctant to expand the API here unless
asked.

Fixes #76.

Previously this was restricted to `str` or `Any` types only, we now also
support string literal types. We could extend this to any type that
encodes as a string, but I'm reluctant to expand the API here unless
asked.
@jcrist
jcrist merged commit 3de39b0 into master Feb 28, 2022
@jcrist
jcrist deleted the support-str-literal-key-json branch February 28, 2022 05:56
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.

Extend dict keys to allow for string literals?

1 participant