Skip to content

Commit

Permalink
pylint: fix invalid-name
Browse files Browse the repository at this point in the history
  • Loading branch information
mapledan committed Jan 23, 2024
1 parent 94b1482 commit b5ca468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/daos/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def validate_metrics_uniqueness(dataset_id: int, metrics_names: list[str]) -> bo
return len(dataset_query) == 0

@staticmethod
def validate_column_python_date_format(dt_format: str) -> bool:
def validate_python_date_format(dt_format: str) -> bool:
if dt_format in ("epoch_s", "epoch_ms"):
return True
try:
Expand Down Expand Up @@ -212,7 +212,7 @@ def update_columns(
"python_date_format" in column
and column["python_date_format"] is not None
):
if not DatasetDAO.validate_column_python_date_format(
if not DatasetDAO.validate_python_date_format(
column["python_date_format"]
):
raise DAOUpdateFailedError(
Expand Down

0 comments on commit b5ca468

Please sign in to comment.