-
-
Notifications
You must be signed in to change notification settings - Fork 543
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
Add default values to Context and RootValue type vars #3732
Conversation
Reviewer's Guide by SourceryThis pull request adds default values to the Class diagram showing updated TypeVar definitionsclassDiagram
class TypeVars {
+Request: TypeVar[contravariant=True]
+Response: TypeVar
+SubResponse: TypeVar
+WebSocketRequest: TypeVar
+WebSocketResponse: TypeVar
+Context: TypeVar[default=None]
+RootValue: TypeVar[default=None]
}
note for TypeVars "Context and RootValue now have default=None"
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @patrick91 - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Thanks for adding the Here's a preview of the changelog: This release updates the Context and RootValue vars to have Here's the tweet text:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3732 +/- ##
=======================================
Coverage 96.97% 96.97%
=======================================
Files 503 503
Lines 33702 33708 +6
Branches 5627 5627
=======================================
+ Hits 32683 32689 +6
Misses 809 809
Partials 210 210 |
CodSpeed Performance ReportMerging #3732 will not alter performanceComparing Summary
|
c4c74b8
to
c2a9e45
Compare
c2a9e45
to
27f00f3
Compare
f3cde26
to
e25d421
Compare
e25d421
to
016515e
Compare
Apollo Federation Subgraph Compatibility Results
Learn more: |
265f442
to
4911b3a
Compare
for more information, see https://pre-commit.ci
6539b0e
to
bb11f8f
Compare
424f4a4
to
e6b93ad
Compare
e6b93ad
to
c028798
Compare
ce17110
to
eb45704
Compare
for more information, see https://pre-commit.ci
Closes #2711
Summary by Sourcery
Set default values for the
Context
andRootValue
type variables toNone
.New Features:
Context
andRootValue
type variables.Enhancements:
GraphQLRouter
instantiation.