mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
fix: changes a pylint check in dashboard module (#10978)
* Removed not needed disabled pylint rules from `set_dash_metadata`: - `disable=too-many-locals`, - `too-many-branches`, - `too-many-statements` * Changed broad exception to KeyError. * Reverted broad_exception in get_col_type in utils
This commit is contained in:
@@ -81,7 +81,7 @@ class DashboardDAO(BaseDAO):
|
||||
raise ex
|
||||
|
||||
@staticmethod
|
||||
def set_dash_metadata( # pylint: disable=too-many-locals,too-many-branches,too-many-statements
|
||||
def set_dash_metadata(
|
||||
dashboard: Dashboard,
|
||||
data: Dict[Any, Any],
|
||||
old_to_new_slice_ids: Optional[Dict[int, int]] = None,
|
||||
|
||||
Reference in New Issue
Block a user