mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Fix issue probably-meant-fstring found at https://codereview.doctor (#19826)
This commit is contained in:
parent
741033e87d
commit
50dc7af583
@ -1198,7 +1198,7 @@ class PrestoEngineSpec(BaseEngineSpec): # pylint: disable=too-many-public-metho
|
|||||||
part_fields = indexes[0]["column_names"]
|
part_fields = indexes[0]["column_names"]
|
||||||
for k in kwargs.keys(): # pylint: disable=consider-iterating-dictionary
|
for k in kwargs.keys(): # pylint: disable=consider-iterating-dictionary
|
||||||
if k not in k in part_fields: # pylint: disable=comparison-with-itself
|
if k not in k in part_fields: # pylint: disable=comparison-with-itself
|
||||||
msg = "Field [{k}] is not part of the portioning key"
|
msg = f"Field [{k}] is not part of the portioning key"
|
||||||
raise SupersetTemplateException(msg)
|
raise SupersetTemplateException(msg)
|
||||||
if len(kwargs.keys()) != len(part_fields) - 1:
|
if len(kwargs.keys()) != len(part_fields) - 1:
|
||||||
msg = (
|
msg = (
|
||||||
|
Loading…
Reference in New Issue
Block a user