App, AsyncSSH: Allow unused "type: ignore" comments
Some '# type: ignore' comments are needed because they complain about missing but optional third-party packages: argcomplete, paramiko, asyncssh. The next commit will enable warn_unused_ignores, and since nor mypy nor pyright have a way of knowing that this is a tolerable lack of packages, this commit teaches them in advance. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
64edcec48c
commit
fec0304543
3 changed files with 10 additions and 8 deletions
|
|
@ -6,7 +6,7 @@ import shutil
|
|||
import signal
|
||||
import sys
|
||||
|
||||
import asyncssh # type: ignore[import-not-found]
|
||||
import asyncssh # type: ignore[import-not-found, unused-ignore]
|
||||
|
||||
from ...base import Result
|
||||
from ...log import DEBUG, ERR, NOTICE, log
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ from typing import override, TYPE_CHECKING
|
|||
|
||||
# Tolerate missing paramiko imports. jw-pkg is designed to work with what it
|
||||
# finds.
|
||||
import paramiko # type: ignore[import-untyped,import-not-found] # error: Library stubs not installed for "paramiko"
|
||||
import paramiko.agent # type: ignore[import-untyped,import-not-found]
|
||||
import paramiko.SCPClient # type: ignore[import-untyped,import-not-found]
|
||||
import paramiko # type: ignore[import-untyped,import-not-found, unused-ignore] # error: Library stubs not installed for "paramiko"
|
||||
import paramiko.agent # type: ignore[import-untyped,import-not-found, unused-ignore]
|
||||
import paramiko.SCPClient # type: ignore[import-untyped,import-not-found, unused-ignore]
|
||||
|
||||
from ...base import Result
|
||||
from ...log import ERR, log
|
||||
|
|
|
|||
Loading…
Reference in a new issue