Skip to content
Snippets Groups Projects

Fix pylint warnings

Merged I. Nüske requested to merge f-240-fix-pylint-warnings into dev
1 unresolved thread
2 files
+ 4
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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__)
@@ -777,4+778,4 @@
@@ -777,4+778,4 @@
if self._authenticator._credentials_provider is None:
if self._authenticator._credentials_provider is None:
raise ValueError(
raise ValueError(
"No credentials provider set. Please call configure_connection() first.")
"No credentials provider set. Please call configure_connection() first.")
return self._authenticator._credentials_provider.username
return self._authenticator._credentials_provider.username
Loading