more pylint and mypy fixes

This commit is contained in:
Lex Berezhny 2018-11-03 20:07:23 -04:00
parent 77d8c68b13
commit f0e1fc1a49
2 changed files with 5 additions and 3 deletions

View file

@ -11,7 +11,7 @@ jobs:
install:
- pip install git+https://github.com/PyCQA/pylint.git
- pip install mypy
- pip install -e .
- pip install -e .[test,server]
script:
- pylint --rcfile=setup.cfg torba
- mypy --ignore-missing-imports torba

View file

@ -1,4 +1,3 @@
import asyncio
import logging
import unittest
from unittest.case import _Outcome
@ -6,8 +5,11 @@ from .node import Conductor
try:
from asyncio.runners import _cancel_all_tasks # pylint: disable=C0412
import asyncio
from asyncio.runners import _cancel_all_tasks # type: ignore
except ImportError:
import asyncio
# this is only available in py3.7
def _cancel_all_tasks(loop):
pass