Skip to content
Snippets Groups Projects
Commit dc339849 authored by I. Nüske's avatar I. Nüske
Browse files

FIX: Always import CredentialsAuthenticator, ignore linting errors on version import

parent c2062ba5
No related branches found
No related tags found
2 merge requests!189ENH: add convenience functions,!181Fix pylint warnings
Pipeline #62385 passed with warnings
This commit is part of merge request !181. Comments created here will be created in the context of that merge request.
...@@ -55,7 +55,7 @@ from .utils.get_entity import (get_entity_by_id, get_entity_by_name, ...@@ -55,7 +55,7 @@ from .utils.get_entity import (get_entity_by_id, get_entity_by_name,
get_entity_by_path) get_entity_by_path)
try: try:
from .version import version as __version__ from .version import version as __version_ # pylint: disable=import-error
except ModuleNotFoundError: except ModuleNotFoundError:
version = "uninstalled" version = "uninstalled"
__version__ = version __version__ = version
......
...@@ -47,7 +47,7 @@ from ..exceptions import (ConfigurationError, HTTPClientError, ...@@ -47,7 +47,7 @@ from ..exceptions import (ConfigurationError, HTTPClientError,
LoginFailedError) LoginFailedError)
try: try:
from ..version import version from ..version import version # pylint: disable=import-error
except ModuleNotFoundError: except ModuleNotFoundError:
version = "uninstalled" version = "uninstalled"
...@@ -56,11 +56,12 @@ from .interface import CaosDBHTTPResponse, CaosDBServerConnection ...@@ -56,11 +56,12 @@ from .interface import CaosDBHTTPResponse, CaosDBServerConnection
from .utils import make_uri_path, urlencode from .utils import make_uri_path, urlencode
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from .authentication.interface import CredentialsAuthenticator
if TYPE_CHECKING: if TYPE_CHECKING:
from typing import Optional, Any, Iterator, Union from typing import Optional, Any, Iterator, Union
from requests.models import Response from requests.models import Response
from ssl import _SSLMethod from ssl import _SSLMethod
from .authentication.interface import AbstractAuthenticator, CredentialsAuthenticator from .authentication.interface import AbstractAuthenticator
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment