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

Only allow object types to be union types, fixes #4243 #4269

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

rmosolgo
Copy link
Owner

If you need to override this for backwards compatibility, you can redefine def self.assert_valid_union_member(type_defn) in your own base Union class with the previous code. (But I can't imagine what non-Object types used to do here!)

@rmosolgo rmosolgo added this to the 2.0.16 milestone Dec 14, 2022
@rmosolgo rmosolgo merged commit 7772917 into master Dec 14, 2022
@rmosolgo rmosolgo deleted the fix-union-possible-types-check branch December 14, 2022 14:23
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.

None yet

1 participant