-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Specify nullness for some graphql.schema.idl
classes
#3895
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets decide on the Assert nullness question and then move forward
I am geenrally happy with this PR so thank you. Its just that Assert is a special case and I am not sure how to move forward on that |
Thanks for the pull request! I like your choice with Assert as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! We are on Easter break, will come back to your PR after the holidays
@bbakerman as discussed, the changes you suggested were implemented so merging in |
I think method parameters in the Without that, null safety checks will fail because those method arguments are nullable by nature. The contract annotation lets JSpecify know that once it's checked, it cannot be null. One last piece of feedback: adding |
Related #3878
I applied
@NullMarked
on the classes:graphql.Assert
graphql.schema.idl.FieldWiringEnvironment
graphql.schema.idl.InterfaceWiringEnvironment
graphql.schema.idl.ScalarInfo
graphql.schema.idl.ScalarWiringEnvironment
graphql.schema.idl.SchemaParser
graphql.schema.idl.TypeDefinitionRegistry
graphql.schema.idl.UnionWiringEnvironment
graphql.schema.idl.WiringEnvironment