Full typing for scrapy/exceptions.py.

This commit is contained in:
Andrey Rakhmatullin 2023-08-07 00:44:46 +04:00
parent 9960c62b87
commit c5885fc13b
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class StopDownload(Exception):
should be handled by the request errback. Note that 'fail' is a keyword-only argument.
"""
def __init__(self, *, fail=True):
def __init__(self, *, fail: bool = True):
super().__init__()
self.fail = fail