Disable pylint on lines dedicated to mypy

Pylint doesn’t read the typeshed.
This commit is contained in:
mathieui 2019-10-27 20:02:13 +01:00
parent abe1941abf
commit 5928f02bfc
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ from poezio.windows.funcs import truncate_nick
from slixmpp import JID, InvalidJID, Message
if TYPE_CHECKING:
from _curses import _CursesWindow
from _curses import _CursesWindow # pylint: disable=E0611
log = logging.getLogger(__name__)

View file

@ -26,7 +26,7 @@ FORMAT_CHAR = '\x19'
format_chars = '\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x1A'
if TYPE_CHECKING:
from _curses import _CursesWindow
from _curses import _CursesWindow # pylint: disable=E0611
class DummyWin: