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:
Jianchao Yang
2020-04-04 13:23:18 -07:00
committed by GitHub
parent 5e55e09e3e
commit 801e2f1777
13 changed files with 36 additions and 37 deletions

View File

@@ -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,