1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-06 11:00:46 +00:00

Remove useless pylint: disable lines.

This commit is contained in:
Andrey Rakhmatullin 2025-01-02 12:32:25 +05:00
parent b70443f2d0
commit dc706d4fc3
3 changed files with 4 additions and 3 deletions

View File

@ -124,6 +124,9 @@ extension-pkg-allow-list=[
]
[tool.pylint."MESSAGES CONTROL"]
enable = [
"useless-suppression",
]
disable = [
# Ones we want to ignore
"attribute-defined-outside-init",

View File

@ -1,4 +1,4 @@
# pylint:disable=no-method-argument,no-self-argument
# pylint: disable=no-method-argument,no-self-argument
from zope.interface import Interface

View File

@ -277,14 +277,12 @@ class DownloaderAwareSchedulerTestMixin:
downloader = self.mock_crawler.engine.downloader
while self.scheduler.has_pending_requests():
request = self.scheduler.next_request()
# pylint: disable=protected-access
slot = downloader.get_slot_key(request)
dequeued_slots.append(slot)
downloader.increment(slot)
requests.append(request)
for request in requests:
# pylint: disable=protected-access
slot = downloader.get_slot_key(request)
downloader.decrement(slot)