mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: upgrade mypy and add type guards (#16227)
This commit is contained in:
@@ -384,12 +384,12 @@ def change_log(
|
||||
with open(csv, "w") as csv_file:
|
||||
log_items = list(logs)
|
||||
field_names = log_items[0].keys()
|
||||
writer = lib_csv.DictWriter(
|
||||
writer = lib_csv.DictWriter( # type: ignore
|
||||
csv_file,
|
||||
delimiter=",",
|
||||
quotechar='"',
|
||||
quoting=lib_csv.QUOTE_ALL,
|
||||
fieldnames=field_names,
|
||||
fieldnames=field_names, # type: ignore
|
||||
)
|
||||
writer.writeheader()
|
||||
for log in logs:
|
||||
|
||||
Reference in New Issue
Block a user