-
-
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
fix: Fix Python 3.8 type error #3615
Conversation
I am not sure how to add a test here/whether it is needed |
for more information, see https://pre-commit.ci
Reviewer's Guide by SourceryThis pull request fixes a Python 3.8 type error by modifying a type hint in the File-Level Changes
Tips
|
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 @szokeasaurusrex - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a test case to verify this fix works as expected across different Python versions, particularly 3.8 and above.
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 to tell me if it was helpful.
Thanks for adding the Here's a preview of the changelog: This release fixes a TypeError on Python 3.8 due to us using a Here's the tweet text:
|
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 #3615 will not alter performanceComparing Summary
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3615 +/- ##
=======================================
Coverage 96.79% 96.79%
=======================================
Files 517 517
Lines 33530 33530
Branches 5576 5576
=======================================
Hits 32454 32454
Misses 848 848
Partials 228 228 |
@szokeasaurusrex thanks! I wonder why this wasn't caught in our CI 🤔 I'll add a release and ship this 😊 |
Thanks for contributing to Strawberry! 🎉 You've been invited to join You can also request a free sticker by filling this form: https://forms.gle/dmnfQUPoY5gZbVT67 And don't forget to join our discord server: https://strawberry.rocks/discord 🔥 |
Description
Make type hint a string so that it is not evaluated at runtime, where it would cause a
TypeError
in Python 3.8.Types of Changes
Issues Fixed or Closed by This PR
TypeError
in Python 3.8 (regression) #3614Checklist
Summary by Sourcery
Fix a type error in Python 3.8 by converting a type hint to a string in the async_base_view.py file.
Bug Fixes: