diff --git a/src/linkahead/__init__.py b/src/linkahead/__init__.py index 567748e3b3a58fb73b91f652d82ed10f818d6014..ac8df123c66ee092801e63a427003fbb7478fc0c 100644 --- a/src/linkahead/__init__.py +++ b/src/linkahead/__init__.py @@ -55,7 +55,7 @@ from .utils.get_entity import (get_entity_by_id, get_entity_by_name, get_entity_by_path) try: - from .version import version as __version__ + from .version import version as __version__ # pylint: disable=import-error except ModuleNotFoundError: version = "uninstalled" __version__ = version diff --git a/src/linkahead/connection/connection.py b/src/linkahead/connection/connection.py index 74dd23177c548dd640c6dd1c03ce4069c366802b..fe99b421ee9d5bc3bc158af6b7f4882232db4d97 100644 --- a/src/linkahead/connection/connection.py +++ b/src/linkahead/connection/connection.py @@ -47,7 +47,7 @@ from ..exceptions import (ConfigurationError, HTTPClientError, LoginFailedError) try: - from ..version import version + from ..version import version # pylint: disable=import-error except ModuleNotFoundError: version = "uninstalled" @@ -56,11 +56,12 @@ from .interface import CaosDBHTTPResponse, CaosDBServerConnection from .utils import make_uri_path, urlencode from typing import TYPE_CHECKING +from .authentication.interface import CredentialsAuthenticator if TYPE_CHECKING: from typing import Optional, Any, Iterator, Union from requests.models import Response - from ssl import _SSLMethod - from .authentication.interface import AbstractAuthenticator, CredentialsAuthenticator + from ssl import _SSLMethod # pylint: disable=no-name-in-module + from .authentication.interface import AbstractAuthenticator _LOGGER = logging.getLogger(__name__) diff --git a/src/linkahead/connection/encode.py b/src/linkahead/connection/encode.py index a76197803c9652e2d0c4e32819ee3e3f97758bfc..0cbb0b69f0a7b50244eb54c8dea7ef43ae713894 100644 --- a/src/linkahead/connection/encode.py +++ b/src/linkahead/connection/encode.py @@ -384,7 +384,7 @@ class MultipartYielder(object): # since python 3 def __next__(self): - return self.next() + return self.next() # pylint: disable=not-callable def next(self): """generator function to yield multipart/form-data representation of