You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/09/10 02:39:04 UTC

[GitHub] [incubator-superset] natbusa commented on issue #10802: TypeError: unhashable type: 'dict' - Dashboard

natbusa commented on issue #10802:
URL: https://github.com/apache/incubator-superset/issues/10802#issuecomment-689938947


   ```
   def get_metric_name(metric: Metric) -> str:
       fallback = metric
       if isinstance(metric, dict):
           fallback = metric.get('label', metric['optionName'])
       return metric["label"] if is_adhoc_metric(metric) else fallback  # type: ignore
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org