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

Add return types to JSON decoders #3005

Closed
wants to merge 1 commit into from
Closed

Add return types to JSON decoders #3005

wants to merge 1 commit into from

Conversation

chdsbd
Copy link
Contributor

@chdsbd chdsbd commented May 23, 2019

No description provided.

@srittau
Copy link
Collaborator

srittau commented May 23, 2019

Thank you for your contribution. Unfortunately, union return types do not work well, since they require the caller to make isinstance checks on the returned value. This is why our contribution guidelines discourage their use. One solution would be python/typing#566, but there are currently no plans to implement that.

@srittau srittau closed this May 23, 2019
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