-
Notifications
You must be signed in to change notification settings - Fork 20
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 typing issues for typed Scrapy. #131
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #131 +/- ##
==========================================
+ Coverage 97.87% 97.89% +0.02%
==========================================
Files 14 14
Lines 1597 1615 +18
Branches 296 297 +1
==========================================
+ Hits 1563 1581 +18
Misses 14 14
Partials 20 20
|
Scrapy < 2.1 has a hidden bug, accidentally fixed in scrapy/scrapy#4481: |
OTOH I think this breakage will also happen in user code. Unless we want to drop Scrapy 2.0.1, we need to use |
@@ -393,7 +393,7 @@ class UseChecker(ConstantChecker): | |||
def check(self, response: Response, request: Request) -> bool: | |||
if response.meta.get(SESSION_INIT_META_KEY, False) is True: | |||
return True | |||
return super().check(request, response) | |||
return super().check(response, request) |
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.
😮
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.
Yeah.
It's a test though.
No description provided.