[mypy] Enforcing typing for superset.examples (#9469)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley
2020-04-06 09:11:49 -07:00
committed by GitHub
parent c0807c1af7
commit dcb7b8350e
22 changed files with 75 additions and 49 deletions

View File

@@ -25,7 +25,9 @@ from superset.utils import core as utils
from .helpers import get_example_data, TBL
def load_sf_population_polygons(only_metadata=False, force=False):
def load_sf_population_polygons(
only_metadata: bool = False, force: bool = False
) -> None:
tbl_name = "sf_population_polygons"
database = utils.get_example_database()
table_exists = database.has_table_by_name(tbl_name)