-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
Type internal test clients stricter #3745
Conversation
Reviewer's Guide by SourceryThis PR enhances type annotations across various internal HTTP test clients, improving their compatibility with public test clients and enhancing type checking during development. Class diagram showing BaseGraphQLWSHandler type changesclassDiagram
class BaseGraphQLWSHandler~Context, RootValue~ {
-view: AsyncBaseHTTPView
+__init__(view)
}
note for BaseGraphQLWSHandler "Removed explicit context and root_value attributes
Now handled through generic type parameters"
File-Level Changes
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 @DoctorJohn - 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.
Hi, thanks for contributing to Strawberry 🍓! We noticed that this PR is missing a So as soon as this PR is merged, a release will be made 🚀. Here's an example of Release type: patch
Description of the changes, ideally with some examples, if adding a new feature. Release type can be one of patch, minor or major. We use semver, so make sure to pick the appropriate type. If in doubt feel free to ask :) Here's the tweet text:
|
CodSpeed Performance ReportMerging #3745 will not alter performanceComparing Summary
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3745 +/- ##
==========================================
+ Coverage 97.27% 97.32% +0.04%
==========================================
Files 501 501
Lines 33408 33386 -22
Branches 5480 5478 -2
==========================================
- Hits 32499 32493 -6
+ Misses 701 685 -16
Partials 208 208 |
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.
minor thoughts, rest LGTM
77af746
to
5dce666
Compare
Description
This PR improves the typing of our internal HTTP test clients.
The motivation behind this is to see what parts of them could be re/used for our public test clients and to make pylance and me much happier when I work in vscode lol
Types of Changes
Summary by Sourcery
Enhancements: