mirror of https://github.com/scrapy/scrapy.git
Typing: switch to a newer version of MyPy to check types
This commit is contained in:
parent
ee2df97bbd
commit
70dddfe2b2
|
|
@ -1,5 +1,6 @@
|
|||
import asyncio
|
||||
import sys
|
||||
from typing import Optional
|
||||
|
||||
from scrapy import Spider
|
||||
from scrapy.crawler import CrawlerProcess
|
||||
|
|
@ -31,6 +32,7 @@ class UrlSpider(Spider):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ASYNCIO_EVENT_LOOP: Optional[str]
|
||||
try:
|
||||
ASYNCIO_EVENT_LOOP = sys.argv[1]
|
||||
except IndexError:
|
||||
|
|
|
|||
Loading…
Reference in New Issue