Skip to content

Enforce NonNull for returned related Sets and their content #690

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

Merged
merged 3 commits into from
Jun 25, 2019

Conversation

jkimbo
Copy link
Member

@jkimbo jkimbo commented Jun 25, 2019

As discussed in #44 : when you retrieve the related Set of an object,

  1. You never get None : when no related items are returned, you get an empty Set.
  2. You never, ever get a Set of None.
    This PR enforces the fact that the Set is NonNull, and so is each object in the Set.

(PR recreated from #681 by @dperetti)

@dperetti
Copy link

For reference, the discussion was actually #448

@jkimbo jkimbo merged commit 54cc6a4 into master Jun 25, 2019
@jkimbo jkimbo deleted the dperetti-master branch June 25, 2019 15:30
@jkimbo jkimbo mentioned this pull request Jul 9, 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.

4 participants