[stable-2] Ignore more unnecessary import warnings (#587)

* Fix imports. (#585)

(cherry picked from commit a426232523)

* Add another ignore.
This commit is contained in:
Felix Fontein 2023-02-12 22:32:02 +01:00 committed by GitHub
parent 8e99d0c4da
commit d50d6e05ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ except ImportError:
try:
from requests.exceptions import RequestException
from requests.exceptions import RequestException # noqa: F401, pylint: disable=unused-import
except ImportError:
# Either docker-py is no longer using requests, or docker-py isn't around either,
# or docker-py's dependency requests is missing. In any case, define an exception

View File

@ -152,7 +152,7 @@ NEEDS_DOCKER_PYCREDS = False
# the credential store api.
if HAS_DOCKER_PY:
try:
from docker.credentials.errors import StoreError, CredentialsNotFound
from docker.credentials.errors import StoreError, CredentialsNotFound # noqa: F401, pylint: disable=unused-import
from docker.credentials import Store
except ImportError:
try: