mirror of
https://github.com/apache/superset.git
synced 2026-04-14 13:44:46 +00:00
chore: Update pylint to 2.17.4 (#24700)
Co-authored-by: John Bodley <john.bodley@gmail.com>
This commit is contained in:
@@ -113,8 +113,8 @@ def extract_top_from_query(
|
||||
token = str_statement.rstrip().split(" ")
|
||||
token = [part for part in token if part]
|
||||
top = None
|
||||
for i, _ in enumerate(token):
|
||||
if token[i].upper() in top_keywords and len(token) - 1 > i:
|
||||
for i, part in enumerate(token):
|
||||
if part.upper() in top_keywords and len(token) - 1 > i:
|
||||
try:
|
||||
top = int(token[i + 1])
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user