fix: typing & pylint errors

- Ignore typing check for http2 test files
This commit is contained in:
Aditya 2020-08-16 17:55:16 +05:30
parent f9f008e935
commit 38d361792c
3 changed files with 9 additions and 3 deletions

View File

@ -71,8 +71,8 @@ class ScrapyH2Agent:
def __init__(
self, context_factory,
connect_timeout=10,
bind_address: Optional[bytes] = None, pool: H2ConnectionPool = None,
pool: H2ConnectionPool,
connect_timeout=10, bind_address: Optional[bytes] = None,
crawler=None
) -> None:
self._context_factory = context_factory

View File

@ -323,7 +323,7 @@ class H2ClientProtocol(Protocol, TimeoutMixin):
elif isinstance(event, SettingsAcknowledged):
self.settings_acknowledged(event)
elif isinstance(event, UnknownFrameReceived):
logger.debug(f'UnknownFrameReceived: frame={event.frame}')
logger.debug('UnknownFrameReceived: frame={}'.format(event.frame))
# Event handler functions starts here
def connection_terminated(self, event: ConnectionTerminated) -> None:

View File

@ -100,6 +100,9 @@ ignore_errors = True
[mypy-tests.test_downloader_handlers]
ignore_errors = True
[mypy-tests.test_download_handlers_http2]
ignore_errors = True
[mypy-tests.test_engine]
ignore_errors = True
@ -109,6 +112,9 @@ ignore_errors = True
[mypy-tests.test_http_request]
ignore_errors = True
[mypy-tests.test_http2_client_protocol]
ignore_errors = True
[mypy-tests.test_linkextractors]
ignore_errors = True