mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
chore: bump black to 19.10b0 and mypy to 0.770 (#9378)
* Bump black to 19.10b0 * Upgrade mypy to 0.770 * Update how inline type is defined
This commit is contained in:
@@ -188,7 +188,10 @@ def check_datasource_perms(
|
||||
except SupersetException as e:
|
||||
raise SupersetSecurityException(str(e))
|
||||
|
||||
viz_obj = get_viz( # type: ignore
|
||||
if datasource_type is None:
|
||||
raise SupersetSecurityException("Could not determine datasource type")
|
||||
|
||||
viz_obj = get_viz(
|
||||
datasource_type=datasource_type,
|
||||
datasource_id=datasource_id,
|
||||
form_data=form_data,
|
||||
|
||||
Reference in New Issue
Block a user