Skip to content

Enforce NonNull for returned related Sets and their content#690

Merged
jkimbo merged 3 commits intomasterfrom
dperetti-master
Jun 25, 2019
Merged

Enforce NonNull for returned related Sets and their content#690
jkimbo merged 3 commits intomasterfrom
dperetti-master

Conversation

@jkimbo
Copy link
Copy Markdown
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
Copy Markdown

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