mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
chore(pylint): Reenable import-outside-toplevel check (#16263)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
from datetime import datetime
|
||||
from typing import Dict, Optional, Type
|
||||
|
||||
from urllib3.exceptions import NewConnectionError
|
||||
|
||||
from superset.db_engine_specs.base import BaseEngineSpec
|
||||
from superset.db_engine_specs.exceptions import SupersetDBAPIDatabaseError
|
||||
from superset.utils import core as utils
|
||||
@@ -48,8 +50,6 @@ class ClickHouseEngineSpec(BaseEngineSpec): # pylint: disable=abstract-method
|
||||
|
||||
@classmethod
|
||||
def get_dbapi_exception_mapping(cls) -> Dict[Type[Exception], Type[Exception]]:
|
||||
from urllib3.exceptions import NewConnectionError
|
||||
|
||||
return {NewConnectionError: SupersetDBAPIDatabaseError}
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user