mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
chore: Enforce Mypy for non-tests (#15757)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -170,9 +170,7 @@ class QueryObject:
|
||||
# 2. { label: 'label_name' } - legacy format for a predefined metric
|
||||
# 3. { expressionType: 'SIMPLE' | 'SQL', ... } - adhoc metric
|
||||
self.metrics = metrics and [
|
||||
x
|
||||
if isinstance(x, str) or is_adhoc_metric(x)
|
||||
else x["label"] # type: ignore
|
||||
x if isinstance(x, str) or is_adhoc_metric(x) else x["label"]
|
||||
for x in metrics
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user