FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow empty custom context in GraphQLView by leonardwellthy · Pull Request #106 · graphql-python/graphql-server · GitHub

Allow empty custom context in GraphQLView - #106

Merged
kiendang merged 2 commits into
graphql-python:masterfrom
leonardwellthy:allow_empty_context
Apr 13, 2023
Merged

Allow empty custom context in GraphQLView#106
kiendang merged 2 commits into
graphql-python:masterfrom
leonardwellthy:allow_empty_context

Conversation

Copy link
Copy Markdown
Contributor

From PEP-8: "beware of writing if x when you really mean if x is not None – e.g. when testing whether a variable or argument that defaults to None was set to some other value. The other value might have a type (such as a container) that could be false in a boolean context!"

Currently a custom MutableMapping cannot be used as a graphql context if it is passed to GraphQLView empty

kiendang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks @leonardwellthy!

kiendang merged commit d76450a into graphql-python:master Apr 13, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL