Skip to content

Commit

Permalink
Rename parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Jul 10, 2024
1 parent 229fa1e commit 3b395b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset/security/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
GuestUser,
)
from superset.sql_parse import extract_tables_from_jinja_sql, Table
from superset.superset_typing import Metric
from superset.superset_typing import Column, Metric
from superset.utils import json
from superset.utils.core import (
DatasourceName,
Expand Down Expand Up @@ -145,11 +145,11 @@ def __init__(self, **kwargs: Any) -> None:
RoleModelView.related_views = []


def freeze_value(metric: Metric) -> str:
def freeze_value(value: Column | Metric) -> str:
"""
Used to compare column and metric sets.
"""
return json.dumps(metric, sort_keys=True)
return json.dumps(value, sort_keys=True)


def query_context_modified(query_context: "QueryContext") -> bool:
Expand Down

0 comments on commit 3b395b8

Please sign in to comment.